[DEBUG] [08/11/2025 14:57:11.489] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:57:11,489 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/11/2025 14:57:11.489] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/11/2025 14:57:11.489] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/11/2025 14:57:11.507] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.133:17355] with UID [-2611983286506916684] [INFO] [08/11/2025 14:57:11.508] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Starting up, Pekko version [1.0.3] ... 02:57:11,508 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.133:17355] with UID [-2611983286506916684] 02:57:11,508 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Starting up, Pekko version [1.0.3] ... 02:57:11,510 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/11/2025 14:57:11.510] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/11/2025 14:57:11.510] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Started up successfully 02:57:11,510 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Started up successfully [INFO] [08/11/2025 14:57:11.517] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/11/2025 14:57:11.517] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:57:11,517 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:57:11,517 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:57:11,524 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:57:11,524 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,618 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:57:11,618 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:57:11,618 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:57:11,619 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:57:11,620 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:57:11,620 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:57:11,620 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:57:11,620 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:57:11,626 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:57:11,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior390#-663237553] 02:57:11,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower391#308680334] 02:57:11,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader392#149928571] 02:57:11,644 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:57:11,644 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,646 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:57:11,646 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:57:11,647 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:57:11,647 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:57:11,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior393#235617342] 02:57:11,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower394#-1999989165] 02:57:11,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader395#509832781] 02:57:11,662 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:57:11,662 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,663 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:57:11,663 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:57:11,663 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:57:11,663 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:57:11,664 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:57:11,664 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:57:11,664 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:57:11,666 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:57:11,666 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:57:11,667 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:57:11,667 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:57:11,669 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:57:11,669 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:57:11,669 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior396#-161971293] 02:57:11,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower397#-657837603] 02:57:11,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader398#-693052653] 02:57:11,684 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,685 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:57:11,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#-1026230877] 02:57:11,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower400#-1400576200] 02:57:11,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader401#-12712226] 02:57:11,711 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:57:11,711 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,712 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:57:11,720 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:57:11,720 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:11,721 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:57:11,721 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:57:11,721 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:57:11,721 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:57:11,721 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:57:11,722 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:11,722 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:57:11,723 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:57:11,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior402#112749106] 02:57:11,736 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower403#-1044443107] 02:57:11,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader404#1770013606] 02:57:11,747 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:57:11,747 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,749 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:57:11,749 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:11,749 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:57:11,749 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:57:11,749 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:57:11,750 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:57:11,750 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:57:11,750 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:57:11,750 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:57:11,750 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:57:11,750 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:57:11,750 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:57:11,750 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:57:11,752 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:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:57:11,752 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:57:11,752 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:57:11,752 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:57:11,752 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:57:11,752 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:57:11,753 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#-1496865796] 02:57:11,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower406#-1731796509] 02:57:11,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader407#1207398256] 02:57:11,766 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:57:11,767 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,767 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:57:11,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 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:57:11,769 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:57:11,769 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:57:11,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior408#-1248300218] 02:57:11,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower409#1257198445] 02:57:11,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader410#2089790457] 02:57:11,775 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#-1952694032] 02:57:11,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower412#1733434610] 02:57:11,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader413#-45257463] 02:57:11,781 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:57:11,781 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:11,781 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:57:11,781 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:57:11,784 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:57:11,784 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:11,784 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:57:11,785 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:57:11,785 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:57:11,785 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:57:11,785 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:57:11,785 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:11,785 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:57:11,785 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:57:11,785 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:57:11,785 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:57:11,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior414#-1285085694] 02:57:11,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower415#-1486601612] 02:57:11,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader416#881915596] 02:57:11,787 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 02:57:11,791 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:57:11,791 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:57:11,791 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [WARN] [08/11/2025 14:57:11.791] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@87097 [INFO] [pekkoDeadLetter][08/11/2025 14:57:11.792] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:11,792 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:11,792 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:57:11,792 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:57:11,792 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 02:57:11,792 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 02:57:11,792 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:57:11,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:57:11,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:57:11,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:57:11,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:57:11,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:11,796 PM [test-pekko.actor.default-dispatcher-5] [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:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 02:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 02:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:57:11,799 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.tmp 02:57:11,804 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1 02:57:11,804 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:11.799670697Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.731 ms, resetting timer for the next recovery snapshot 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 253.2 μs with journalIndex=1 02:57:11,805 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:57:11,806 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 02:57:11,907 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1 02:57:11,908 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:57:11,908 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:57:11,908 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:57:11,908 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:11.799670697Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:57:11,909 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 116.6 ms 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:57:11,909 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:57:11,910 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:57:11,910 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:57:11,910 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:57:11,910 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:57:11,910 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:57:12,37 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:57:12,37 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:57:12,37 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 128.4 ms 02:57:12,38 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 8.420 μs 02:57:12,38 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:57:12,38 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c6158@73da3c5b} 02:57:12,38 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 02:57:12,38 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 02:57:12,39 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:57:12,39 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 995.4 μs 02:57:12,39 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c6158@73da3c5b} 02:57:12,39 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C8-0258AC50.tmp 02:57:12,39 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 129.3 ms [WARN] [08/11/2025 14:57:12.039] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 14:57:12.040] [test-pekko.actor.default-dispatcher-12] [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:57:12,40 PM [test-pekko.actor.default-dispatcher-12] [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'. 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C8-0258AC50.v1 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C8-0258AC50.v1 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:57:12,43 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:11.799670697Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C7-2FAA01A9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T14:57:12.039365712Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C8-0258AC50.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d641229] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:57:12,44 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:57:12,44 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-11T14:57:12.039365712Z 02:57:12,44 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 02:57:12,44 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.213 ms 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 396.9 μs 02:57:12,44 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:57:12,44 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:57:12,112 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C8-0258AC50.v1 02:57:12,112 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:57:12,112 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:57:12,112 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:57:12,112 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T14:57:12.039365712Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11782376636788511860/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A04C8-0258AC50.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:57:12,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior417#-1755455670] 02:57:12,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower418#-1295338808] 02:57:12,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader419#1675460650] 02:57:12,125 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:57:12,126 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#835,testCaptureSnapshotOnLastEntryInAppendEntries-writer-128]/waiting 02:57:12,126 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 81.43 ms 02:57:12,126 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 26.21 μs 02:57:12,126 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 02:57:12,126 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:57:12,126 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:57:12,126 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:57:12,126 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:57:12,129 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#2057431052] 02:57:12,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#159641657] 02:57:12,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1696022715] 02:57:12,144 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:57:12,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,145 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:57:12,146 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:57:12,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#920368673] 02:57:12,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1080528011] 02:57:12,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#607238959] 02:57:12,160 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:57:12,160 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,160 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:57:12,161 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:57:12,161 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:12,161 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:57:12,161 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:57:12,161 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:57:12,161 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:57:12,161 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:57:12,162 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:12,162 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:57:12,162 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:57:12,165 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1137275152] 02:57:12,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-154599240] 02:57:12,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#944410381] 02:57:12,180 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:57:12,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,181 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:57:12,181 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:57:12,182 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:57:12,182 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:57:12,182 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:12,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:57:12,183 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:57:12,184 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:57:12,184 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:57:12,185 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:57:12,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1922348300] 02:57:12,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-434003155] 02:57:12,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#2081838933] 02:57:12,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1535681199] 02:57:12,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1306339444] 02:57:12,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-663806844] 02:57:12,215 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:57:12,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,216 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:57:12,216 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:57:12,217 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:57:12,217 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:57:12,217 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:12,217 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:57:12,217 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:57:12,218 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:57:12,218 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:57:12,218 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:57:12,218 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:57:12,218 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:57:12,219 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:57:12,219 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:57:12,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#928238193] 02:57:12,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#2087908376] 02:57:12,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1622469691] 02:57:12,231 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:57:12,231 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,232 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:57:12,233 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:12,233 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:57:12,233 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:57:12,233 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:57:12,233 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:57:12,233 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:57:12,233 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:57:12,233 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:57:12,233 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:57:12,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#678707853] 02:57:12,244 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#1937110205] 02:57:12,244 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#1461381733] 02:57:12,246 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:57:12,246 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,248 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:57:12,249 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader443 02:57:12,249 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader443 02:57:12,250 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:57:12,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1259125622] 02:57:12,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#573446128] 02:57:12,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1256871599] 02:57:12,263 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:57:12,263 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,263 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:57:12,264 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:57:12,264 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:12,264 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:57:12,264 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:57:12,264 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:57:12,264 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:57:12,264 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:57:12,264 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:12,264 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:57:12,264 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:57:12,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1285925334] 02:57:12,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1372485283] 02:57:12,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1414054227] 02:57:12,278 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:57:12,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,278 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:57:12,278 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:57:12,279 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:57:12,279 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:57:12,279 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:12,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1483169088] 02:57:12,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1682395503] 02:57:12,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-484198157] 02:57:12,292 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 02:57:12,294 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:57:12,294 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:57:12,294 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:57:12,294 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 02:57:12,295 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:57:12,295 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 02:57:12,295 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started [WARN] [08/11/2025 14:57:12.295] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4d05bad2 02:57:12,295 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:57:12,296 PM [test-pekko.actor.default-dispatcher-11] [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'. [INFO] [pekkoDeadLetter][08/11/2025 14:57:12.295] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:12,297 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:57:12,297 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:57:12,297 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:57:12,297 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:57:12,297 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:57:12,297 PM [test-pekko.actor.default-dispatcher-11] [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:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 02:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 02:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:57:12,302 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-12047DEA.tmp 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-12047DEA.v1 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-12047DEA.v1 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:12.302284266Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-12047DEA.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:57:12,304 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 2.748 ms, resetting timer for the next recovery snapshot 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 272.2 μs with journalIndex=1 02:57:12,305 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 02:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 02:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [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:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:57:12,306 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 11.25 ms 02:57:12,306 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [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:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:57:12,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 02:57:12,309 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:57:12,309 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.822 ms 02:57:12,309 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 4.240 μs 02:57:12,309 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:57:12,309 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:57:12,309 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08c6158@6dda19b0} 02:57:12,309 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 02:57:12,310 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 02:57:12,310 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 02:57:12,310 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.313 ms 02:57:12,310 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:57:12,310 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 02:57:12,310 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:57:12,310 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08c6158@6dda19b0} 02:57:12,310 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:57:12,310 PM [test-pekko.actor.default-dispatcher-11] [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:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 02:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:57:12,311 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-128A60D7.tmp 02:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 02:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08c6158@6dda19b0} 02:57:12,311 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 3.972 ms [WARN] [08/11/2025 14:57:12.311] [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/11/2025 14:57:12.311] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:12,311 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-128A60D7.v1 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-128A60D7.v1 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-12047DEA.v1 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:12.302284266Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-12047DEA.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T14:57:12.311058647Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-128A60D7.v1, size=539, entryCompress=NONE, stateCompress=NONE} 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d124256] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:57:12,313 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:57:12,313 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-11T14:57:12.311058647Z 02:57:12,313 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 02:57:12,313 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.881 ms 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 125.4 μs 02:57:12,313 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:57:12,313 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:57:12,457 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-128A60D7.v1 02:57:12,457 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:57:12,457 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:57:12,457 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:57:12,457 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T14:57:12.311058647Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2009176045857312832/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A04C8-128A60D7.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 02:57:12,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-29159673] 02:57:12,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1065924334] 02:57:12,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#89610286] 02:57:12,470 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:57:12,471 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#840,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129]/waiting 02:57:12,471 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 157.4 ms 02:57:12,471 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 27.36 μs 02:57:12,471 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 02:57:12,471 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:57:12,471 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:57:12,471 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:57:12,471 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:57:12,474 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:57:12,474 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,475 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:57:12,476 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:57:12,476 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:57:12,477 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:57:12,477 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:57:12,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-319080267] 02:57:12,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-1170133106] 02:57:12,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-1429411087] 02:57:12,481 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:57:12,481 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,481 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:57:12,482 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:57:12,482 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:57:12,482 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:57:12,482 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:57:12,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#955194613] 02:57:12,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#618826848] 02:57:12,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#96941467] 02:57:12,484 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:57:12,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,487 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:57:12,487 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:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:57:12,488 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:57:12,488 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:57:12,488 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:57:12,488 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:57:12,488 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:57:12,489 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:57:12,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:57:12,490 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:57:12,490 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:57:12,490 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:57:12,490 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:57:12,490 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:57:12,490 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:57:12,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#764825848] 02:57:12,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1021543040] 02:57:12,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1146608555] 02:57:12,503 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:57:12,503 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,504 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:57:12,504 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:57:12,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#723136796] 02:57:12,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1494060108] 02:57:12,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#961482895] 02:57:12,520 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:57:12,520 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,526 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:57:12,526 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:57:12,526 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:57:12,527 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:57:12,529 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:57:12,530 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:57:12,531 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:57:12,531 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:12,531 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:57:12,531 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:57:12,531 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:57:12,531 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:57:12,531 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:57:12,531 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:57:12,531 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:57:12,531 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:57:12,531 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:57:12,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1628545866] 02:57:12,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1963569959] 02:57:12,543 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#2130999631] 02:57:12,545 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:57:12,545 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,545 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:57:12,546 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:57:12,546 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:57:12,546 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:57:12,546 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:57:12,546 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:57:12,547 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:57:12,547 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:57:12,547 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:57:12,547 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:57:12,547 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:57:12,548 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:57:12,548 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:57:12,548 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:57:12,548 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:57:12,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1219780881] 02:57:12,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#119847915] 02:57:12,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-689556022] 02:57:12,551 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:57:12,551 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,751 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:57:12,751 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.133:17355, Removed) 02:57:12,751 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:57:12,752 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:57:12,752 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:57:12,752 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:57:12,752 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-529526423] 02:57:12,753 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1081304281] 02:57:12,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-817421492] 02:57:12,757 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,757 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:57:12,959 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:57:12,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1518963955] 02:57:12,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#1162401829] 02:57:12,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1472268182] 02:57:12,964 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:57:12,964 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,966 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:57:12,966 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:57:12,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1045619409] 02:57:12,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-1950168884] 02:57:12,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#898610431] 02:57:12,971 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:57:12,971 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,972 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:57:12,972 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:57:12,972 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:57:12,972 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:57:12,972 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:57:12,972 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:57:12,972 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:57:12,972 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:57:12,973 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:57:12,973 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:57:12,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:57:12,973 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:57:12,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:57:12,973 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:57:12,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:57:12,973 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:57:12,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:57:12,973 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:57:12,973 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:57:12,973 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:57:12,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-590177146] 02:57:12,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-1600848435] 02:57:12,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1766643489] 02:57:12,988 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:57:12,988 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:12,989 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:57:12,990 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:57:12,990 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:57:12,990 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:57:12,992 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:57:12,992 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:57:12,992 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#224031225] 02:57:13,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1350458004] 02:57:13,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#773944460] 02:57:13,6 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:57:13,7 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:13,8 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:57:13,9 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:57:13,9 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:57:13,9 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:57:13,9 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:57:13,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1919132273] 02:57:13,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-656687710] 02:57:13,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1061260648] 02:57:13,24 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/11/2025 14:57:13.025] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@41c22d36 [INFO] [pekkoDeadLetter][08/11/2025 14:57:13.025] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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:57:13,25 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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:57:13,26 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:57:13,26 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:57:13,26 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:57:13,26 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:57:13,27 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:57:13,27 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 02:57:13,28 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:57:13,28 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:57:13,28 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:57:13,28 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:57:13,28 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:57:13,28 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:57:13,28 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:13,28 PM [test-pekko.actor.default-dispatcher-6] [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:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 02:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 02:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:57:13,70 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.tmp 02:57:13,73 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1 02:57:13,73 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:13.070335106Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 4.178 ms, resetting timer for the next recovery snapshot 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 02:57:13,74 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 02:57:13,75 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:57:13,75 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 430.7 μs with journalIndex=1 02:57:13,75 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:57:13,76 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 02:57:13,177 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1 02:57:13,177 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:57:13,177 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:57:13,177 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:57:13,177 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:13.070335106Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 02:57:13,178 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:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:57:13,178 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 150.1 ms 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:57:13,178 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:57:13,178 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:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:57:13,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:57:13,179 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 02:57:13,182 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:57:13,182 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:57:13,182 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.625 ms 02:57:13,182 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:57:13,182 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 7.170 μs 02:57:13,182 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/0x00000007c08c6158@52f1d8af} 02:57:13,182 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:57:13,184 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 02:57:13,184 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 02:57:13,184 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 02:57:13,184 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 2.044 ms 02:57:13,184 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:57:13,184 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:57:13,184 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/0x00000007c08c6158@52f1d8af} 02:57:13,184 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:57:13,184 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:57:13,184 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:57:13,184 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:57:13,184 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:57:13,185 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:57:13,185 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 02:57:13,185 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/0x00000007c08c6158@52f1d8af} 02:57:13,185 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.677 ms [WARN] [08/11/2025 14:57:13.185] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 02:57:13,185 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/11/2025 14:57:13.185] [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:57:13,185 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.tmp 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:57:13.070335106Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-04313A82.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T14:57:13.184923234Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:57:13,188 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d54469] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:57:13,188 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:57:13,189 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-11T14:57:13.184923234Z 02:57:13,189 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 02:57:13,189 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:57:13,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.508 ms 02:57:13,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 02:57:13,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 02:57:13,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:57:13,189 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:57:13,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 204.9 μs 02:57:13,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:57:13,433 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1 02:57:13,433 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:57:13,433 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:57:13,433 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:57:13,433 PM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 02:57:13,433 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T14:57:13.184923234Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:57:13,435 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:57:13,446 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#843,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130]/waiting 02:57:13,446 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 257.3 ms 02:57:13,446 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 27.78 μs 02:57:13,446 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:57:13,447 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:57:13,447 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:57:13,447 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:57:13,447 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/11/2025 14:57:13.448] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@213888b4 [INFO] [pekkoDeadLetter][08/11/2025 14:57:13.448] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:13,448 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:57:13,448 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:57:13,448 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:57:13,448 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:57:13,449 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 02:57:13,450 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 02:57:13,450 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 02:57:13,450 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:57:13,450 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T14:57:13.184923234Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8026630615173449154/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A04C9-0B05B462.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:57:13,451 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-11T14:57:13.184923234Z 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 102.5 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 178.4 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 105.1 μs with journalIndex=4 02:57:13,452 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:57:13,452 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1947012711] 02:57:13,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#1771821754] 02:57:13,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-732807340] 02:57:13,464 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:57:13,465 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#848,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131]/waiting 02:57:13,465 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.90 ms 02:57:13,465 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 23.77 μs 02:57:13,465 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:57:13,465 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:57:13,465 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:57:13,465 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:57:13,465 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:57:13,468 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:57:13,468 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:13,769 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:57:13,899 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:57:13,899 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:57:14,150 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:57:14,350 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:57:14,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-179761320] 02:57:14,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-517819849] 02:57:14,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1971142438] 02:57:14,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,366 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:57:14,366 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:57:14,366 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:57:14,366 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:57:14,366 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:57:14,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-2128105620] 02:57:14,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1879009420] 02:57:14,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#477896098] 02:57:14,371 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,372 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:57:14,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:57:14,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1315388047] 02:57:14,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1771171037] 02:57:14,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1694456717] 02:57:14,387 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,388 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:57:14,389 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:57:14,389 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:57:14,389 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:57:14,389 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:57:14,389 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:57:14,389 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:57:14,389 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:57:14,389 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:57:14,389 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:57:14,390 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:57:14,390 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:57:14,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#765004550] 02:57:14,401 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-1376231883] 02:57:14,401 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1299027828] 02:57:14,403 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,404 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:57:14,404 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:57:14,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#1842129953] 02:57:14,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#779943529] 02:57:14,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1656395657] 02:57:14,417 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,418 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:57:14,419 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:57:14,419 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:57:14,419 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:57:14,420 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:57:14,422 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:57:14,422 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:57:14,422 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:57:14,422 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:57:14,423 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:57:14,423 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:57:14,424 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:57:14,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#689290318] 02:57:14,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1085947093] 02:57:14,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-286455941] 02:57:14,438 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:57:14,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:57:14,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,440 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:57:14,440 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:57:14,440 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:57:14,440 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:57:14,440 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:57:14,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-119584453] 02:57:14,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#1746749798] 02:57:14,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-475146657] 02:57:14,453 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,455 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:57:14,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1539239250] 02:57:14,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-1101209033] 02:57:14,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#938147730] 02:57:14,468 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:57:14,469 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:57:14,469 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:57:14,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#202280907] 02:57:14,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-754732936] 02:57:14,481 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#741552247] [INFO] [08/11/2025 14:57:14.481] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:57:14,481 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/11/2025 14:57:14.482] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.133:17355) [INFO] [pekkoDeadLetter][08/11/2025 14:57:14.483] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1047063048] 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'. 02:57:14,483 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1047063048] 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/11/2025 14:57:14.483] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Exiting completed [INFO] [08/11/2025 14:57:14.483] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Shutting down... 02:57:14,483 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Exiting completed 02:57:14,483 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Shutting down... [INFO] [08/11/2025 14:57:14.483] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Successfully shut down 02:57:14,484 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Successfully shut down [INFO] [08/11/2025 14:57:14.485] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.133:17355/system/remoting-terminator] Shutting down remote daemon. 02:57:14,485 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:57:14,485 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 14:57:14.485] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.133:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 14:57:14.487] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.133:17355/system/remoting-terminator] Remoting shut down. 02:57:14,487 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/11/2025 14:57:14.487] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger