[DEBUG] [07/02/2025 14:38:28.686] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:38:28,703 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 14:38:28.703] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 14:38:28.703] [main] [EventStream(pekko://test)] Default Loggers started 02:38:28,715 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.23:17355] with UID [-2669758294124292207] 02:38:28,715 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/02/2025 14:38:28.714] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.23:17355] with UID [-2669758294124292207] [INFO] [07/02/2025 14:38:28.715] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Starting up, Pekko version [1.0.3] ... 02:38:28,719 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:38:28,719 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Started up successfully 02:38:28,719 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:38:28,719 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/02/2025 14:38:28.717] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 14:38:28.717] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Started up successfully [INFO] [07/02/2025 14:38:28.718] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/02/2025 14:38:28.718] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:38:28,729 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:38:28,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,818 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:38:28,819 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:38:28,819 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:38:28,820 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:38:28,821 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:38:28,821 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:38:28,821 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:38:28,821 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:38:28,824 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:38:28,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#1681752506] 02:38:28,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-788157004] 02:38:28,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1904705900] 02:38:28,838 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:38:28,838 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,840 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:38:28,840 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:38:28,840 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:38:28,841 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:38:28,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1235462071] 02:38:28,851 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1363656184] 02:38:28,852 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#374494513] 02:38:28,854 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:38:28,854 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,855 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:38:28,855 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:38:28,855 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:38:28,856 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:38:28,856 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:38:28,856 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:38:28,857 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:38:28,858 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:38:28,859 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:38:28,859 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:38:28,860 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:38:28,860 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:38:28,860 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:38:28,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-232943544] 02:38:28,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1590876037] 02:38:28,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1854127827] 02:38:28,863 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,864 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:38:28,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-1925052380] 02:38:28,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1088452629] 02:38:28,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#181257433] 02:38:28,866 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:38:28,866 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,867 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:38:28,867 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:38:28,867 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:28,868 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:38:28,868 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:38:28,868 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:38:28,868 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:38:28,868 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:38:28,868 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:28,868 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:38:28,869 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:38:28,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1234067059] 02:38:28,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-1774177369] 02:38:28,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-694479767] 02:38:28,872 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:38:28,872 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,873 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:38:28,873 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:28,873 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:38:28,873 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:38:28,873 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:38:28,873 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:38:28,873 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:38:28,873 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:38:28,873 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:38:28,873 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:38:28,873 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:38:28,873 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:38:28,873 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:38:28,874 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:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:38:28,874 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:38:28,874 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:38:28,874 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:38:28,875 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:38:28,875 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:38:28,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1653061776] 02:38:28,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#568314417] 02:38:28,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-177911719] 02:38:28,877 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:38:28,877 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,877 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:38:28,878 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:38:28,878 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:38:28,878 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:38:28,878 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1578267037] 02:38:28,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#290051999] 02:38:28,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-1641221983] 02:38:28,880 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#1727562671] 02:38:28,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1461015043] 02:38:28,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1348574690] 02:38:28,884 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:38:28,884 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:28,884 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:38:28,884 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:38:28,885 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:38:28,885 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:28,885 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:38:28,885 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:38:28,885 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:38:28,885 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:38:28,885 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:38:28,885 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:28,885 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:38:28,885 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:38:28,885 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:38:28,885 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:38:28,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1274700296] 02:38:28,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1573319830] 02:38:28,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#868920227] 02:38:28,887 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 02:38:28,890 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:38:28,890 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:38:28,890 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [WARN] [07/02/2025 14:38:28.891] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@73690546 [INFO] [pekkoDeadLetter][07/02/2025 14:38:28.891] [test-pekko.actor.default-dispatcher-11] [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:38:28,891 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:38:28,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:38:28,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:38:28,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:28,893 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:38:28,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:28,897 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:38:28,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@febd67c 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [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:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [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:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:38:28,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:38:28,898 PM [test-pekko.actor.default-dispatcher-6] [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:38:28,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:38:28,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:38:28,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:38:28,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:38:28,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 02:38:28,899 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1185] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654464-35968172.tmp [WARN] [07/02/2025 14:38:28.899] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 02:38:28,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/02/2025 14:38:28.899] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:38:28,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1185] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654464-35968172.v1 02:38:28,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1185] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654464-35968172.v1 02:38:28,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1185] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:38:28,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1185] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T14:38:28.899055986Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654464-35968172.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:38:28,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d1185] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:38:28,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:38:28,904 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-02T14:38:28.899055986Z 02:38:28,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 02:38:28,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:38:28,904 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 02:38:29,49 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654464-35968172.v1 02:38:29,50 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:38:29,50 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T14:38:28.899055986Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3469867230646327872/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654464-35968172.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:38:29,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1217201658] 02:38:29,55 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#846440529] 02:38:29,55 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1333947619] 02:38:29,55 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:38:29,56 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:38:29,56 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:38:29,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#735658913] 02:38:29,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1317420277] 02:38:29,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1062328116] 02:38:29,63 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:38:29,63 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,64 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:38:29,65 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:38:29,65 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-558367329] 02:38:29,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-798535280] 02:38:29,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#2115355758] 02:38:29,68 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:38:29,68 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,68 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:38:29,69 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:38:29,69 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:29,69 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:38:29,69 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:38:29,69 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:38:29,69 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:38:29,70 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:38:29,70 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:29,70 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:38:29,70 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:38:29,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#1923558032] 02:38:29,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#529279805] 02:38:29,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#233287639] 02:38:29,73 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:38:29,73 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,73 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:38:29,74 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:38:29,74 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:38:29,74 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:38:29,74 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:29,74 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:38:29,74 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:38:29,74 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:38:29,75 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:38:29,75 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:38:29,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#486602630] 02:38:29,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-596320633] 02:38:29,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#682105016] 02:38:29,77 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1364435274] 02:38:29,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1176721217] 02:38:29,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1841844552] 02:38:29,79 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:38:29,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,79 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:38:29,80 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:38:29,80 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:38:29,80 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:38:29,80 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:29,80 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:38:29,80 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:38:29,81 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:38:29,81 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:38:29,81 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:38:29,81 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:38:29,81 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:38:29,82 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:38:29,82 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:38:29,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#947116353] 02:38:29,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#998480221] 02:38:29,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#1454946549] 02:38:29,84 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:38:29,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,85 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:38:29,85 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:29,85 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:38:29,85 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:38:29,85 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:38:29,85 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:38:29,85 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:38:29,85 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:38:29,85 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:38:29,85 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:38:29,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1974954458] 02:38:29,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1390888202] 02:38:29,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#867740030] 02:38:29,87 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:38:29,87 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,88 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:38:29,89 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 02:38:29,89 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 02:38:29,90 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:38:29,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1988724670] 02:38:29,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#946687553] 02:38:29,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#198593614] 02:38:29,93 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:38:29,93 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,94 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:38:29,94 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:38:29,94 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:29,94 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:38:29,94 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:38:29,94 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:38:29,94 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:38:29,94 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:38:29,95 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:29,95 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:38:29,95 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:38:29,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#304785924] 02:38:29,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#633926808] 02:38:29,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1514941369] 02:38:29,98 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:38:29,98 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,98 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:38:29,98 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:38:29,98 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:38:29,99 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:38:29,99 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:29,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#979738221] 02:38:29,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-1837701901] 02:38:29,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#873224493] 02:38:29,101 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 02:38:29,102 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:38:29,102 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:38:29,102 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [07/02/2025 14:38:29.102] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@2cadeea1 [INFO] [pekkoDeadLetter][07/02/2025 14:38:29.102] [test-pekko.actor.default-dispatcher-11] [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:38:29,103 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'. 02:38:29,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:38:29,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:38:29,104 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:38:29,104 PM [test-pekko.actor.default-dispatcher-5] [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:38:29,108 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:38:29,108 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:38:29,108 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@664de49b 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [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:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [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:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:38:29,109 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 02:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:38:29,110 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:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 02:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:38:29,110 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:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 02:38:29,110 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d945693] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654465-0691E6AA.tmp 02:38:29,110 PM [test-pekko.actor.default-dispatcher-11] [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'. [WARN] [07/02/2025 14:38:29.110] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 14:38:29.110] [test-pekko.actor.default-dispatcher-11] [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:38:29,113 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d945693] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654465-0691E6AA.v1 02:38:29,113 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d945693] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:38:29,113 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d945693] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654465-0691E6AA.v1 02:38:29,113 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d945693] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T14:38:29.110225066Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654465-0691E6AA.v1, size=701, entryCompress=NONE, stateCompress=NONE} 02:38:29,114 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d945693] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:38:29,114 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:38:29,114 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-02T14:38:29.110225066Z 02:38:29,114 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 02:38:29,114 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:38:29,114 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 02:38:29,261 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:38:29,261 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654465-0691E6AA.v1 02:38:29,261 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T14:38:29.110225066Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4856201140473431969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654465-0691E6AA.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 02:38:29,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-583113557] 02:38:29,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#648785124] 02:38:29,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-848443341] 02:38:29,264 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:38:29,264 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:38:29,265 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:38:29,268 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:38:29,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,269 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:38:29,269 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:38:29,270 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:38:29,270 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:38:29,270 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:38:29,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-857222830] 02:38:29,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#2092625724] 02:38:29,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#49636428] 02:38:29,273 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:38:29,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,274 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:38:29,274 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:38:29,274 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:38:29,274 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:38:29,274 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:38:29,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#167338715] 02:38:29,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#2114146345] 02:38:29,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-456941823] 02:38:29,276 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:38:29,276 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,277 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:38:29,277 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:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:38:29,277 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:29,277 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:38:29,277 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:38:29,277 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:38:29,278 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:38:29,278 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:38:29,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:38:29,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:38:29,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:38:29,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:38:29,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:38:29,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:38:29,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:38:29,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:38:29,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1390552678] 02:38:29,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-1056426791] 02:38:29,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#50547854] 02:38:29,280 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:38:29,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,280 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:38:29,280 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:38:29,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1635638706] 02:38:29,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-280704234] 02:38:29,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-209007835] 02:38:29,282 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:38:29,282 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,283 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:38:29,283 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:38:29,283 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:38:29,283 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:38:29,283 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:38:29,284 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:38:29,284 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:38:29,284 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:29,284 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:38:29,284 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:38:29,284 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:38:29,284 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:38:29,284 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:38:29,284 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:38:29,284 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:38:29,284 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:38:29,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:38:29,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#1442603300] 02:38:29,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-2042846487] 02:38:29,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1691015548] 02:38:29,286 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:38:29,286 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,287 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:38:29,287 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:38:29,287 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:38:29,287 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:38:29,287 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:38:29,288 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:38:29,288 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:38:29,288 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:38:29,288 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:38:29,288 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:38:29,288 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:38:29,289 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:38:29,289 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:38:29,289 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:38:29,289 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:38:29,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-1531798618] 02:38:29,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#267578757] 02:38:29,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1415227791] 02:38:29,291 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:38:29,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,491 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:29,492 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.23:17355, Removed) 02:38:29,492 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:38:29,492 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:38:29,492 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:38:29,492 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:38:29,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#432175437] 02:38:29,493 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1366774764] 02:38:29,493 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-448065480] 02:38:29,497 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,497 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:38:29,648 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:29,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#802998207] 02:38:29,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#2517755] 02:38:29,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1956278157] 02:38:29,651 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:38:29,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,654 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:38:29,654 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:38:29,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#764440397] 02:38:29,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#601377969] 02:38:29,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1239502819] 02:38:29,658 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:38:29,658 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,659 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:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:38:29,660 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:38:29,660 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:38:29,660 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:38:29,661 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:38:29,661 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:38:29,661 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:38:29,661 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:38:29,661 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:38:29,661 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:38:29,661 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:38:29,661 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:38:29,661 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:38:29,661 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:38:29,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#1874148525] 02:38:29,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1955820707] 02:38:29,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-153492060] 02:38:29,663 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:38:29,663 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,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:38:29,664 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:38:29,664 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:38:29,664 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:38:29,664 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:38:29,664 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:38:29,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-184683383] 02:38:29,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1258530858] 02:38:29,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-769645549] 02:38:29,666 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:38:29,666 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:29,667 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:38:29,667 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:38:29,667 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:38:29,667 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:38:29,667 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:38:29,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#959426889] 02:38:29,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1924554590] 02:38:29,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-665007721] 02:38:29,669 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/02/2025 14:38:29.670] [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@6186e544 02:38:29,670 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. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/02/2025 14:38:29.670] [test-pekko.actor.default-dispatcher-14] [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:38:29,670 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:38:29,671 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:38:29,671 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:38:29,672 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:38:29,672 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:38:29,672 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:29,672 PM [test-pekko.actor.default-dispatcher-14] [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:38:29,675 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:29,675 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:38:29,676 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7f4e3d0e 02:38:29,676 PM [test-pekko.actor.default-dispatcher-14] [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:38:29,676 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:38:29,676 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:38:29,676 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:38:29,676 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [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:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:38:29,677 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 02:38:29,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:38:29,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:38:29,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:38:29,677 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:38:29,678 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 02:38:29,678 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:38:29,678 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:38:29,678 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:38:29,678 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 02:38:29,678 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d437297] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.tmp [WARN] [07/02/2025 14:38:29.678] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 02:38:29,678 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][07/02/2025 14:38:29.678] [test-pekko.actor.default-dispatcher-14] [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:38:29,680 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d437297] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1 02:38:29,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d437297] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1 02:38:29,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d437297] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:38:29,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d437297] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T14:38:29.678058121Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:38:29,681 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d437297] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:38:29,681 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:38:29,681 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-02T14:38:29.678058121Z 02:38:29,681 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 02:38:29,681 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:38:29,681 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 02:38:29,828 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1 02:38:29,828 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:38:29,829 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T14:38:29.678058121Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:38:29,830 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:38:29,841 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:38:29,841 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/02/2025 14:38:29.842] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@395d8f02 [INFO] [pekkoDeadLetter][07/02/2025 14:38:29.842] [test-pekko.actor.default-dispatcher-5] [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:38:29,842 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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:38:29,843 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:38:29,843 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:38:29,843 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:38:29,845 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:29,845 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1 02:38:29,845 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:38:29,845 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T14:38:29.678058121Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6436511202861990716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654465-286A5889.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:38:29,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:38:29,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-02T14:38:29.678058121Z 02:38:29,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 137.1 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 537.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:38:29,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@9efcf40 02:38:29,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-429331107] 02:38:29,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#562419342] 02:38:29,859 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-881476211] 02:38:29,859 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:38:29,859 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:38:29,859 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:38:29,861 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:38:29,861 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,162 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:38:30,292 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:30,292 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:38:30,542 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:38:30,743 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:38:30,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-587111408] 02:38:30,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-264236319] 02:38:30,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#1531457610] 02:38:30,757 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,758 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:38:30,758 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:38:30,758 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:38:30,758 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:38:30,758 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:38:30,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-945652437] 02:38:30,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#1149712608] 02:38:30,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#647330286] 02:38:30,772 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,774 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:38:30,775 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:38:30,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-923903598] 02:38:30,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1909224449] 02:38:30,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#197477178] 02:38:30,789 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,790 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:38:30,790 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:38:30,791 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:38:30,791 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:38:30,791 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:38:30,791 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:38:30,791 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:38:30,791 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:38:30,791 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:38:30,792 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:38:30,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:38:30,792 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:38:30,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-252685902] 02:38:30,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1808676093] 02:38:30,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#1276961184] 02:38:30,806 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,808 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:38:30,809 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:38:30,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#1672841732] 02:38:30,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-1653643035] 02:38:30,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#211525533] 02:38:30,821 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,822 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:38:30,822 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:38:30,823 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:38:30,823 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:38:30,823 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:38:30,824 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:38:30,824 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:38:30,824 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:38:30,824 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:38:30,825 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:38:30,825 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:38:30,826 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:38:30,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#84247043] 02:38:30,837 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#574472548] 02:38:30,837 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1998774249] 02:38:30,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:38:30,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:38:30,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,839 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:38:30,839 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:38:30,839 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:38:30,840 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:38:30,840 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:38:30,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-142957707] 02:38:30,851 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-20175689] 02:38:30,851 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1390640027] 02:38:30,854 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,855 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:38:30,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-94868355] 02:38:30,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-994521887] 02:38:30,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1116956132] 02:38:30,868 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:38:30,869 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:38:30,870 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:38:30,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-234825441] 02:38:30,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1572648386] 02:38:30,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1978069222] [INFO] [07/02/2025 14:38:30.882] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:38:30,882 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 14:38:30.883] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.23:17355) [INFO] [pekkoDeadLetter][07/02/2025 14:38:30.883] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1324192146] 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:38:30,883 PM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1324192146] 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] [07/02/2025 14:38:30.883] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Exiting completed 02:38:30,884 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Exiting completed 02:38:30,884 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Shutting down... 02:38:30,884 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Successfully shut down [INFO] [07/02/2025 14:38:30.883] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Shutting down... [INFO] [07/02/2025 14:38:30.883] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Successfully shut down [INFO] [07/02/2025 14:38:30.885] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.23:17355/system/remoting-terminator] Shutting down remote daemon. 02:38:30,885 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:38:30,885 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 14:38:30.885] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.23:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 14:38:30.887] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.23:17355/system/remoting-terminator] Remoting shut down. 02:38:30,887 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/02/2025 14:38:30.887] [test-pekko.actor.internal-dispatcher-9] [EventStream] shutting down: StandardOutLogger