[DEBUG] [08/05/2025 14:05:29.574] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:05:29,575 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/05/2025 14:05:29.575] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/05/2025 14:05:29.575] [main] [EventStream(pekko://test)] Default Loggers started 02:05:29,589 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.115:17355] with UID [-5518157422004186944] 02:05:29,589 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/05/2025 14:05:29.588] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.115:17355] with UID [-5518157422004186944] [INFO] [08/05/2025 14:05:29.589] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/05/2025 14:05:29.592] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/05/2025 14:05:29.592] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Started up successfully 02:05:29,592 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:05:29,592 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Started up successfully 02:05:29,594 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:05:29,594 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [08/05/2025 14:05:29.593] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/05/2025 14:05:29.593] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:05:29,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,700 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 02:05:29,700 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:05:29,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-1094708058] 02:05:29,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1108262222] 02:05:29,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#297969156] 02:05:29,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,719 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]]} 02:05:29,720 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:29,720 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:05:29,720 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:05:29,721 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:05:29,721 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:05:29,722 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} 02:05:29,722 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:05:29,722 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:05:29,723 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:05:29,723 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:05:29,723 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:05:29,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-1297601228] 02:05:29,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1978857965] 02:05:29,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1727908983] 02:05:29,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,737 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 02:05:29,738 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:05:29,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-557684872] 02:05:29,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1999197264] 02:05:29,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#85693606] 02:05:29,766 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,767 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 02:05:29,768 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 02:05:29,768 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} 02:05:29,768 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:05:29,769 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 02:05:29,769 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:05:29,769 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:05:29,769 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. 02:05:29,769 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 02:05:29,770 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 02:05:29,770 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:05:29,771 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:05:29,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-505426802] 02:05:29,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-304345881] 02:05:29,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1081838608] 02:05:29,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:05:29,793 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:05:29,793 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,793 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:05:29,794 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:05:29,794 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:05:29,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:05:29,795 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:05:29,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#512648330] 02:05:29,806 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1437706969] 02:05:29,806 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#2132996970] 02:05:29,810 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,811 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:05:29,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-1173202684] 02:05:29,823 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#2127727308] 02:05:29,823 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#539144256] 02:05:29,827 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,828 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 02:05:29,828 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:05:29,829 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1915432550] 02:05:29,839 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-368306690] 02:05:29,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1131183940] 02:05:29,843 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:05:29,843 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,846 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:05:29,846 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:05:29,846 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:05:29,846 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:05:29,847 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:05:29,847 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:05:29,847 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:05:29,847 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:05:29,850 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:05:29,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1557043607] 02:05:29,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1804557469] 02:05:29,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1505510923] 02:05:29,865 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:05:29,865 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,867 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]]} 02:05:29,867 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 02:05:29,867 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} 02:05:29,867 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:05:29,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-2099355745] 02:05:29,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#1025174751] 02:05:29,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-2078368851] 02:05:29,888 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:05:29,888 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,889 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:05:29,889 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:05:29,889 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:05:29,889 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:05:29,890 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:05:29,890 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:05:29,890 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:05:29,891 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:05:29,891 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 02:05:29,892 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]]} 02:05:29,892 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 02:05:29,892 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} 02:05:29,892 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:05:29,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1364430413] 02:05:29,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-403020393] 02:05:29,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1401118721] 02:05:29,914 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,915 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:05:29,916 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-54636850] 02:05:29,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#251358093] 02:05:29,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#533705716] 02:05:29,934 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:05:29,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,936 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 02:05:29,936 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]]} 02:05:29,937 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:29,937 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:05:29,937 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:05:29,937 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:05:29,937 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:05:29,937 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} 02:05:29,937 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:29,937 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:05:29,937 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:05:29,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-408697676] 02:05:29,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1889050673] 02:05:29,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1848576550] 02:05:29,940 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:05:29,940 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,941 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]]} 02:05:29,941 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:29,941 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:05:29,941 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:05:29,941 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:05:29,941 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:05:29,941 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} 02:05:29,942 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:05:29,942 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:05:29,942 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:05:29,942 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:05:29,942 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:05:29,942 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:05:29,942 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]]} 02:05:29,942 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:05:29,943 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:05:29,943 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:05:29,943 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:05:29,943 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:05:29,943 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:05:29,943 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} 02:05:29,943 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:05:29,943 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:05:29,943 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:05:29,943 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:05:29,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-670334410] 02:05:29,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-2110213335] 02:05:29,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-701981918] 02:05:29,945 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:05:29,945 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,946 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 02:05:29,946 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 02:05:29,947 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} 02:05:29,947 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:05:29,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-963460837] 02:05:29,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1041539832] 02:05:29,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-415239146] 02:05:29,949 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-2092433813] 02:05:29,952 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#124871579] 02:05:29,952 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-1235081071] 02:05:29,954 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:05:29,954 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:29,954 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:05:29,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 02:05:29,955 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]]} 02:05:29,955 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:29,955 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:05:29,955 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:05:29,955 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:05:29,955 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:05:29,955 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} 02:05:29,955 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:29,955 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:05:29,955 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:05:29,955 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:05:29,956 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:05:29,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1188998072] 02:05:29,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#2125453133] 02:05:29,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-129580099] 02:05:29,958 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/05/2025 14:05:29.960] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@493e7ec6 [INFO] [pekkoDeadLetter][08/05/2025 14:05:29.960] [test-pekko.actor.default-dispatcher-7] [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'. 02:05:29,961 PM [test-pekko.actor.default-dispatcher-7] [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'. 02:05:29,961 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:05:29,961 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:05:29,961 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:05:29,962 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:05:29,962 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:05:29,962 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 02:05:29,962 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 02:05:29,962 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:05:29,964 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:05:29,964 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:05:29,964 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:05:29,964 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:05:29,964 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:29,964 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:05:29,969 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.tmp 02:05:29,976 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1 02:05:29,976 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:29.969440092Z, file=/tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 7.810 ms, resetting timer for the next recovery snapshot 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 132.7 μs with journalIndex=1 02:05:29,977 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:05:29,978 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 02:05:30,78 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1 02:05:30,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:05:30,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:05:30,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:05:30,79 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:29.969440092Z, file=/tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [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]]} 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [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} 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:05:30,80 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 117.7 ms 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:05:30,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.847 ms 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08c23c8@38e02e45} 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.290 μs 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [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] 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 199.2 μs 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08c23c8@38e02e45} 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 1.981 ms 02:05:30,82 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FAA-04EB043D.tmp 02:05:30,82 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:05:30,85 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [08/05/2025 14:05:30.082] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/05/2025 14:05:30.085] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FAA-04EB043D.v1 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FAA-04EB043D.v1 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:29.969440092Z, file=/tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FA9-39C87B5C.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-05T14:05:30.082510909Z, file=/tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FAA-04EB043D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:05:30,89 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d917566] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:05:30,89 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:05:30,90 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-05T14:05:30.082510909Z 02:05:30,90 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 02:05:30,90 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.561 ms 02:05:30,90 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:05:30,90 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 02:05:30,90 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 02:05:30,90 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:05:30,90 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 267.0 μs 02:05:30,90 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:05:30,90 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:05:30,284 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FAA-04EB043D.v1 02:05:30,284 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:05:30,284 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:05:30,284 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:05:30,284 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-05T14:05:30.082510909Z, file=/tmp/junit-17094308977562957816/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068920FAA-04EB043D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:05:30,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-577819007] 02:05:30,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-535825618] 02:05:30,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-375571034] 02:05:30,303 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:05:30,303 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#820,testCaptureSnapshotOnLastEntryInAppendEntries-writer-156]/waiting 02:05:30,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 213.4 ms 02:05:30,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 18.68 μs 02:05:30,303 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 02:05:30,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:05:30,304 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:05:30,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:05:30,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:05:30,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#2124998736] 02:05:30,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-869031125] 02:05:30,328 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#2130290897] 02:05:30,333 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:05:30,333 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,335 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 02:05:30,335 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:05:30,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-5520081] 02:05:30,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-2104809894] 02:05:30,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-1184178064] 02:05:30,340 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:05:30,340 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,341 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 02:05:30,341 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]]} 02:05:30,342 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:30,342 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:05:30,342 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:05:30,342 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:05:30,342 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:05:30,342 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} 02:05:30,342 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:30,342 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:05:30,342 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:05:30,343 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1493868002] 02:05:30,343 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#958961858] 02:05:30,343 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#2084194668] 02:05:30,346 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:05:30,346 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,346 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 02:05:30,346 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]]} 02:05:30,347 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 02:05:30,347 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} 02:05:30,347 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:30,347 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:05:30,347 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]]} 02:05:30,347 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 02:05:30,348 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} 02:05:30,348 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:05:30,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1710149746] 02:05:30,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#113459696] 02:05:30,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#413210872] 02:05:30,350 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1553211859] 02:05:30,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1656505676] 02:05:30,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#711877417] 02:05:30,353 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:05:30,353 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,353 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 02:05:30,353 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]]} 02:05:30,354 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 02:05:30,354 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:05:30,354 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:30,354 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:05:30,354 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]]} 02:05:30,355 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 02:05:30,355 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} 02:05:30,355 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:05:30,355 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]]} 02:05:30,355 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 02:05:30,356 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} 02:05:30,356 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:05:30,356 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1074143865] 02:05:30,356 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1126808533] 02:05:30,356 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1181430598] 02:05:30,377 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:05:30,377 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,380 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]]} 02:05:30,380 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:30,380 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:05:30,380 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:05:30,380 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:05:30,380 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:05:30,380 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} 02:05:30,380 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:05:30,381 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:05:30,381 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:05:30,381 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-990886861] 02:05:30,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1343213951] 02:05:30,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1401125838] 02:05:30,387 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:05:30,387 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,388 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:05:30,388 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader497 02:05:30,388 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader497 02:05:30,390 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:05:30,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1328711421] 02:05:30,391 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#831114426] 02:05:30,391 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#187045437] 02:05:30,393 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:05:30,393 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,393 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 02:05:30,393 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]]} 02:05:30,394 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:30,394 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:05:30,394 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:05:30,394 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:05:30,394 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:05:30,394 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} 02:05:30,394 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:30,394 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:05:30,394 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:05:30,394 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1899586639] 02:05:30,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#584082995] 02:05:30,395 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-333386489] 02:05:30,397 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:05:30,397 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,397 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 02:05:30,397 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]]} 02:05:30,398 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 02:05:30,398 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} 02:05:30,398 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:30,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-580073501] 02:05:30,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1057753831] 02:05:30,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1093566610] 02:05:30,400 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/05/2025 14:05:30.401] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@2202737b [INFO] [pekkoDeadLetter][08/05/2025 14:05:30.401] [test-pekko.actor.default-dispatcher-12] [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'. 02:05:30,402 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:05:30,402 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:05:30,402 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:05:30,402 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:05:30,403 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 02:05:30,403 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:05:30,403 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 02:05:30,403 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 02:05:30,404 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:05:30,433 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:05:30,433 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:05:30,433 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:05:30,433 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:05:30,433 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:05:30,434 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:05:30,437 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1A19CF18.tmp 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1A19CF18.v1 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1A19CF18.v1 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:30.437899032Z, file=/tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1A19CF18.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:05:30,442 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 5.161 ms, resetting timer for the next recovery snapshot 02:05:30,443 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 02:05:30,443 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 02:05:30,443 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 02:05:30,443 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 02:05:30,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:05:30,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 679.8 μs with journalIndex=1 02:05:30,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 02:05:30,446 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 02:05:30,447 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]]} 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:05:30,447 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} 02:05:30,447 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 02:05:30,447 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 43.92 ms 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:05:30,447 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:05:30,448 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:05:30,448 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:05:30,448 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 6.213 ms 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.900 μs 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 more completion(s) pending 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 104.9 μs 02:05:30,454 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:05:30,454 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 4 completion(s) 02:05:30,454 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:05:30,454 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/0x00000007c08c23c8@553a78bc} 02:05:30,454 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:05:30,454 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/0x00000007c08c23c8@553a78bc} 02:05:30,454 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:05:30,454 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] 02:05:30,455 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 02:05:30,455 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:05:30,455 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:05:30,455 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:05:30,455 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 02:05:30,455 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/0x00000007c08c23c8@553a78bc} 02:05:30,455 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1B2119D2.tmp 02:05:30,455 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 7.260 ms [WARN] [08/05/2025 14:05:30.455] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/05/2025 14:05:30.456] [test-pekko.actor.default-dispatcher-6] [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'. 02:05:30,456 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1B2119D2.v1 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1B2119D2.v1 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1A19CF18.v1 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:30.437899032Z, file=/tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1A19CF18.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-05T14:05:30.455154130Z, file=/tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1B2119D2.v1, size=539, entryCompress=NONE, stateCompress=NONE} 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d44794] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:05:30,460 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:05:30,460 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-05T14:05:30.455154130Z 02:05:30,460 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 02:05:30,460 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 6.421 ms 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 02:05:30,460 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 02:05:30,461 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:05:30,461 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 164.6 μs 02:05:30,461 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:05:30,461 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:05:30,598 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1B2119D2.v1 02:05:30,598 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:05:30,598 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:05:30,598 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:05:30,598 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-05T14:05:30.455154130Z, file=/tmp/junit-11340460620411007301/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068920FAA-1B2119D2.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 02:05:30,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#792730221] 02:05:30,613 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-378136139] 02:05:30,613 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-334527709] 02:05:30,613 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:05:30,613 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#826,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157]/waiting 02:05:30,614 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 153.1 ms 02:05:30,614 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 12.07 μs 02:05:30,614 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 02:05:30,614 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:05:30,614 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:05:30,614 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:05:30,614 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:05:30,620 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:05:30,620 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,622 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 02:05:30,622 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]]} 02:05:30,623 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 02:05:30,623 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} 02:05:30,623 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:05:30,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-332388300] 02:05:30,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1426246252] 02:05:30,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#805302924] 02:05:30,626 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:05:30,627 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,628 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 02:05:30,628 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:05:30,628 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:05:30,628 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:05:30,629 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:05:30,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#633513635] 02:05:30,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#1140104237] 02:05:30,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#2050730869] 02:05:30,631 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:05:30,632 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,632 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 02:05:30,634 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]]} 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:05:30,634 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:05:30,634 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:05:30,634 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:05:30,635 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} 02:05:30,635 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:05:30,635 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:05:30,635 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:05:30,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:05:30,635 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:05:30,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:05:30,635 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:05:30,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:05:30,635 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:05:30,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:05:30,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1112855003] 02:05:30,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1925741379] 02:05:30,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-981311085] 02:05:30,638 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:05:30,638 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,638 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:05:30,638 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:05:30,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#595100301] 02:05:30,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1079069905] 02:05:30,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#55163730] 02:05:30,641 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:05:30,641 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,642 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:05:30,642 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:05:30,642 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:05:30,642 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:05:30,643 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 02:05:30,643 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]]} 02:05:30,643 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 02:05:30,643 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:05:30,643 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:05:30,643 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:05:30,643 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:05:30,643 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:05:30,643 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} 02:05:30,643 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:05:30,643 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:05:30,644 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:05:30,644 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:05:30,644 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-909585228] 02:05:30,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1379014570] 02:05:30,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1916373961] 02:05:30,658 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:05:30,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,659 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 02:05:30,659 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]]} 02:05:30,659 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 02:05:30,659 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} 02:05:30,660 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:05:30,660 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:05:30,660 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]]} 02:05:30,660 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 02:05:30,660 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} 02:05:30,660 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:05:30,660 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:05:30,661 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]]} 02:05:30,661 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 02:05:30,661 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} 02:05:30,661 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:05:30,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1143519634] 02:05:30,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#538976364] 02:05:30,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-439193441] 02:05:30,675 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:05:30,675 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,876 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:05:30,876 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.115:17355, Removed) 02:05:30,876 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:05:30,876 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:05:30,876 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:05:30,876 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:05:30,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#1257678031] 02:05:30,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-1628104614] 02:05:30,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-654683213] 02:05:30,893 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:30,893 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:05:31,95 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:05:31,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#1695776326] 02:05:31,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1145005281] 02:05:31,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-327353071] 02:05:31,100 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:05:31,101 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:31,103 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 02:05:31,103 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:05:31,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1503947962] 02:05:31,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-130415451] 02:05:31,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-1291276537] 02:05:31,108 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:05:31,108 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:31,109 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]]} 02:05:31,109 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:05:31,109 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:05:31,109 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:05:31,109 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:05:31,109 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:05:31,109 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:05:31,110 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} 02:05:31,110 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:05:31,110 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:05:31,110 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:05:31,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:05:31,110 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:05:31,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:05:31,110 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:05:31,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:05:31,110 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:05:31,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:05:31,111 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:05:31,111 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:05:31,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1327956864] 02:05:31,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#500524237] 02:05:31,113 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-979955337] 02:05:31,115 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:05:31,115 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:31,116 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:05:31,116 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:05:31,116 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:05:31,116 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:05:31,116 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]]} 02:05:31,117 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} 02:05:31,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-538650923] 02:05:31,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1921028285] 02:05:31,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1536125127] 02:05:31,119 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:05:31,119 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:31,119 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 02:05:31,119 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]]} 02:05:31,119 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:05:31,119 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:05:31,120 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:05:31,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-370708425] 02:05:31,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-564862223] 02:05:31,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1391536650] 02:05:31,122 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/05/2025 14:05:31.123] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@c2b932e 02:05:31,123 PM [test-pekko.actor.default-dispatcher-11] [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'. [INFO] [pekkoDeadLetter][08/05/2025 14:05:31.123] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:05:31,123 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:05:31,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:05:31,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:05:31,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:05:31,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:05:31,124 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 02:05:31,124 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:05:31,124 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:05:31,126 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:05:31,126 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:05:31,126 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:05:31,126 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:05:31,126 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:31,126 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:05:31,131 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.tmp 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:31.131300429Z, file=/tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.106 ms, resetting timer for the next recovery snapshot 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 155.3 μs with journalIndex=1 02:05:31,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:05:31,134 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 02:05:31,235 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:05:31,235 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:05:31,235 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1 02:05:31,235 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:05:31,235 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:31.131300429Z, file=/tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [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]]} 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:05:31,236 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 111.5 ms 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [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} 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:05:31,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 02:05:31,240 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:05:31,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:05:31,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:05:31,240 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08c23c8@60254c26} 02:05:31,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:05:31,240 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.941 ms 02:05:31,240 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.830 μs 02:05:31,242 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 02:05:31,242 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 02:05:31,242 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.860 ms 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:05:31,242 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08c23c8@60254c26} 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [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] 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08c23c8@60254c26} 02:05:31,242 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.tmp 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.764 ms [WARN] [08/05/2025 14:05:31.242] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 02:05:31,242 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/05/2025 14:05:31.242] [test-pekko.actor.default-dispatcher-6] [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'. 02:05:31,244 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1 02:05:31,244 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-05T14:05:31.131300429Z, file=/tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-07D37C4D.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-05T14:05:31.242534479Z, file=/tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d868147] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:05:31,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:05:31,245 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-05T14:05:31.242534479Z 02:05:31,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 02:05:31,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:05:31,245 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.525 ms 02:05:31,246 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 02:05:31,246 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 02:05:31,246 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:05:31,246 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 254.2 μs 02:05:31,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:05:31,246 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:05:31,487 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1 02:05:31,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:05:31,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:05:31,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:05:31,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-05T14:05:31.242534479Z, file=/tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:05:31,490 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:05:31,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#829,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 02:05:31,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 255.1 ms 02:05:31,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.02 μs 02:05:31,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:05:31,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:05:31,501 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:05:31,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:05:31,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:05:31,503 PM [test-pekko.actor.default-dispatcher-11] [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'. 02:05:31,503 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [WARN] [08/05/2025 14:05:31.503] [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@539b4392 02:05:31,503 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][08/05/2025 14:05:31.503] [test-pekko.actor.default-dispatcher-11] [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'. 02:05:31,504 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:05:31,504 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 02:05:31,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 02:05:31,505 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 02:05:31,505 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:05:31,505 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:05:31,506 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:31,507 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1 02:05:31,507 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:05:31,507 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:05:31,507 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:05:31,507 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-05T14:05:31.242534479Z, file=/tmp/junit-13893690003139813480/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068920FAB-0E74C84F.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:05:31,507 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-05T14:05:31.242534479Z 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 194.3 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 328.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 95.73 μs with journalIndex=4 02:05:31,508 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:05:31,603 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1292287540] 02:05:31,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-272172997] 02:05:31,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1665768589] 02:05:31,605 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:05:31,605 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#834,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 02:05:31,605 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 100.0 ms 02:05:31,605 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.89 μs 02:05:31,605 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:05:31,605 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:05:31,605 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:05:31,605 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:05:31,605 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:05:31,610 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:05:31,610 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:31,911 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:05:32,41 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:05:32,41 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:05:32,292 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:05:32,493 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 201 < election timeout PT0.4S 02:05:32,493 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1061959942] 02:05:32,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-476007663] 02:05:32,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-2146664707] 02:05:32,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:05:32,507 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:05:32,507 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:05:32,507 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:05:32,507 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:05:32,507 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:05:32,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#1997935944] 02:05:32,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#77585549] 02:05:32,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#201223669] [INFO] [08/05/2025 14:05:32.509] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:05:32,509 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/05/2025 14:05:32.510] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.115:17355) 02:05:32,510 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1616097664] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/05/2025 14:05:32.510] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1616097664] 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/05/2025 14:05:32.511] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Exiting completed [INFO] [08/05/2025 14:05:32.511] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Shutting down... [INFO] [08/05/2025 14:05:32.511] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.115:17355] - Successfully shut down 02:05:32,512 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Exiting completed 02:05:32,512 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Shutting down... 02:05:32,512 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.115:17355] - Successfully shut down [INFO] [08/05/2025 14:05:32.513] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.115:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/05/2025 14:05:32.513] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.115:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:05:32,513 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:05:32,513 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 02:05:32,516 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/05/2025 14:05:32.516] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.115:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/05/2025 14:05:32.516] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger