[DEBUG] [06/19/2025 12:38:05.727] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 12:38:05,727 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/19/2025 12:38:05.727] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/19/2025 12:38:05.727] [main] [EventStream(pekko://test)] Default Loggers started 12:38:05,739 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.118:17355] with UID [7246157666904846888] 12:38:05,739 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/19/2025 12:38:05.738] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.118:17355] with UID [7246157666904846888] [INFO] [06/19/2025 12:38:05.739] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/19/2025 12:38:05.741] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/19/2025 12:38:05.741] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - Started up successfully 12:38:05,741 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:38:05,741 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - Started up successfully [INFO] [06/19/2025 12:38:05.741] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/19/2025 12:38:05.741] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:38:05,741 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 12:38:05,742 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:38:05,759 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 12:38:05,759 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,852 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:38:05,852 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:38:05,852 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:38:05,854 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:38:05,855 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:38:05,855 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 12:38:05,855 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:38:05,855 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:38:05,858 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 12:38:05,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-2063141075] 12:38:05,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-745934813] 12:38:05,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-893464870] 12:38:05,871 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 12:38:05,871 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,873 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]]} 12:38:05,874 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 12:38:05,875 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} 12:38:05,875 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:38:05,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-3847602] 12:38:05,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1800557106] 12:38:05,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-637189456] 12:38:05,889 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 12:38:05,889 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,890 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:38:05,890 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:38:05,890 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:38:05,890 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:38:05,891 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:38:05,891 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:38:05,891 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:38:05,892 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:38:05,893 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 12:38:05,893 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]]} 12:38:05,894 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 12:38:05,894 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} 12:38:05,894 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 12:38:05,895 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1062611993] 12:38:05,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1563613541] 12:38:05,906 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-435767023] 12:38:05,908 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,909 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:38:05,910 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#31172635] 12:38:05,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1097922376] 12:38:05,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#600815905] 12:38:05,923 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:38:05,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,923 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 12:38:05,924 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]]} 12:38:05,924 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:05,925 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:38:05,925 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:38:05,925 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:38:05,925 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:38:05,925 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} 12:38:05,926 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:05,926 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:38:05,928 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:38:05,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-1516652087] 12:38:05,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#162337726] 12:38:05,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-905643179] 12:38:05,942 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 12:38:05,942 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,943 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]]} 12:38:05,944 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:05,944 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:38:05,944 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:38:05,944 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:38:05,944 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 12:38:05,944 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} 12:38:05,944 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:38:05,945 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:38:05,945 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:38:05,945 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:38:05,945 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:38:05,945 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:38:05,946 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]]} 12:38:05,946 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:38:05,946 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:38:05,946 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:38:05,946 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 12:38:05,946 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:38:05,946 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:38:05,947 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} 12:38:05,947 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 12:38:05,947 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:38:05,947 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:38:05,947 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:38:05,947 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#104301133] 12:38:05,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-880405798] 12:38:05,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1693028538] 12:38:05,959 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 12:38:05,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,960 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 12:38:05,960 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 12:38:05,961 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} 12:38:05,961 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 12:38:05,961 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#761640643] 12:38:05,972 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#1973816129] 12:38:05,972 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-417823984] 12:38:05,974 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#987372224] 12:38:05,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-1752602615] 12:38:05,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#2033617836] 12:38:05,992 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 12:38:05,992 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:05,992 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:38:05,992 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 12:38:05,993 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]]} 12:38:05,994 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:05,994 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:38:05,994 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:38:05,994 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:38:05,994 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:38:05,994 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} 12:38:05,994 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:05,994 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 12:38:05,995 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 12:38:05,995 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 12:38:05,995 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 12:38:05,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#382848938] 12:38:06,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-48397377] 12:38:06,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#526223100] 12:38:06,8 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/19/2025 12:38:06.013] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@abca0de [INFO] [pekkoDeadLetter][06/19/2025 12:38:06.013] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:38:06,14 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'. 12:38:06,14 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 12:38:06,14 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:38:06,14 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:38:06,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 12:38:06,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 12:38:06,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:06,19 PM [test-pekko.actor.default-dispatcher-14] [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 12:38:06,25 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:06,25 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 12:38:06,25 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@3760d79c 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [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]]} 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [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} 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 12:38:06,26 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 12:38:06,27 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:38:06,27 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:38:06,27 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] 12:38:06,27 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 12:38:06,28 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 12:38:06,28 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 12:38:06,28 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 12:38:06,28 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 12:38:06,28 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d50245] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685404AE-01AC4C87.tmp [WARN] [06/19/2025 12:38:06.028] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/19/2025 12:38:06.028] [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'. 12:38:06,28 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'. 12:38:06,33 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d50245] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685404AE-01AC4C87.v1 12:38:06,33 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d50245] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685404AE-01AC4C87.v1 12:38:06,33 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d50245] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:38:06,34 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d50245] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-19T12:38:06.028068999Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685404AE-01AC4C87.v1, size=555, entryCompress=NONE, stateCompress=NONE} 12:38:06,34 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-19T12:38:06.028068999Z 12:38:06,34 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 12:38:06,34 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 12:38:06,35 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 12:38:06,178 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685404AE-01AC4C87.v1 12:38:06,178 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:38:06,178 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-19T12:38:06.028068999Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13350824841994502752/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685404AE-01AC4C87.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 12:38:06,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#727686489] 12:38:06,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-392658310] 12:38:06,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-263376848] 12:38:06,192 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 12:38:06,192 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:38:06,192 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:38:06,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-200600892] 12:38:06,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1417684217] 12:38:06,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1995432342] 12:38:06,210 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 12:38:06,210 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,212 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 12:38:06,212 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:38:06,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#794331491] 12:38:06,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#506094196] 12:38:06,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-79136453] 12:38:06,227 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 12:38:06,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,227 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 12:38:06,228 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]]} 12:38:06,228 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:06,229 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:38:06,229 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:38:06,229 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:38:06,229 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:38:06,229 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} 12:38:06,229 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:06,229 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:38:06,229 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:38:06,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#1662993048] 12:38:06,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1888876693] 12:38:06,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1780497275] 12:38:06,246 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 12:38:06,246 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,247 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 12:38:06,247 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]]} 12:38:06,247 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 12:38:06,248 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} 12:38:06,248 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:06,248 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 12:38:06,248 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]]} 12:38:06,248 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 12:38:06,249 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} 12:38:06,249 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:38:06,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-440065440] 12:38:06,260 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#971028334] 12:38:06,260 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-68545848] 12:38:06,262 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#1661796862] 12:38:06,273 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-106923972] 12:38:06,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-650281025] 12:38:06,278 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 12:38:06,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,279 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 12:38:06,279 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]]} 12:38:06,279 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 12:38:06,280 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} 12:38:06,280 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:06,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:38:06,280 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]]} 12:38:06,281 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 12:38:06,281 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} 12:38:06,281 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:38:06,281 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]]} 12:38:06,282 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 12:38:06,282 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} 12:38:06,282 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:38:06,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-2100039876] 12:38:06,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-63513024] 12:38:06,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#251198818] 12:38:06,285 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 12:38:06,285 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,286 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]]} 12:38:06,286 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:06,286 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:38:06,286 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:38:06,286 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:38:06,286 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:38:06,286 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} 12:38:06,286 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:38:06,286 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:38:06,286 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 12:38:06,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1729698741] 12:38:06,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#648576843] 12:38:06,287 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#1615998379] 12:38:06,288 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 12:38:06,288 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,289 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:38:06,290 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 12:38:06,290 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 12:38:06,291 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 12:38:06,291 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-950988473] 12:38:06,291 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-1667661145] 12:38:06,291 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-487593206] 12:38:06,294 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 12:38:06,294 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,295 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 12:38:06,295 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]]} 12:38:06,296 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:06,296 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:38:06,296 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:38:06,296 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:38:06,296 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:38:06,296 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} 12:38:06,296 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:06,296 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:38:06,296 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:38:06,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1608775149] 12:38:06,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1688067756] 12:38:06,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-75165819] 12:38:06,311 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:38:06,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,312 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 12:38:06,313 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]]} 12:38:06,313 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 12:38:06,314 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} 12:38:06,314 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:06,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-334857017] 12:38:06,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#432879703] 12:38:06,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-750085641] 12:38:06,327 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/19/2025 12:38:06.328] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4a49f73b [INFO] [pekkoDeadLetter][06/19/2025 12:38:06.328] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:38:06,328 PM [test-pekko.actor.default-dispatcher-5] [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'. 12:38:06,329 PM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 12:38:06,329 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:38:06,329 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:38:06,331 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 12:38:06,331 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 12:38:06,331 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:38:06,331 PM [test-pekko.actor.default-dispatcher-7] [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 12:38:06,334 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:38:06,334 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 12:38:06,334 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@11eed425 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [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]]} 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [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} 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 12:38:06,335 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [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] 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 12:38:06,336 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 12:38:06,337 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 12:38:06,337 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 12:38:06,337 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d144836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685404AE-1416278F.tmp [WARN] [06/19/2025 12:38:06.337] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/19/2025 12:38:06.337] [test-pekko.actor.default-dispatcher-7] [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'. 12:38:06,337 PM [test-pekko.actor.default-dispatcher-14] [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'. 12:38:06,339 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d144836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685404AE-1416278F.v1 12:38:06,339 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d144836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685404AE-1416278F.v1 12:38:06,339 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d144836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:38:06,339 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d144836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-19T12:38:06.336996239Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685404AE-1416278F.v1, size=701, entryCompress=NONE, stateCompress=NONE} 12:38:06,340 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-19T12:38:06.336996239Z 12:38:06,340 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 12:38:06,340 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 12:38:06,340 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 12:38:06,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685404AE-1416278F.v1 12:38:06,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:38:06,488 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-19T12:38:06.336996239Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10862330714633601550/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685404AE-1416278F.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 12:38:06,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1322000873] 12:38:06,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#1529650510] 12:38:06,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1055768842] 12:38:06,501 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 12:38:06,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:38:06,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:38:06,504 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 12:38:06,504 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,505 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 12:38:06,505 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]]} 12:38:06,506 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 12:38:06,506 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} 12:38:06,506 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 12:38:06,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#346448294] 12:38:06,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#2071198541] 12:38:06,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-1738771046] 12:38:06,519 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 12:38:06,519 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,520 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 12:38:06,521 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 12:38:06,521 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 12:38:06,521 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 12:38:06,521 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 12:38:06,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#578420840] 12:38:06,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#664427881] 12:38:06,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-1109587957] 12:38:06,535 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 12:38:06,535 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,536 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 12:38:06,536 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]]} 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:38:06,537 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:38:06,537 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 12:38:06,537 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} 12:38:06,537 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:38:06,537 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 12:38:06,537 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:38:06,537 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:38:06,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:38:06,538 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:38:06,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:38:06,538 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:38:06,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:38:06,538 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:38:06,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-847252241] 12:38:06,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#443695540] 12:38:06,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1118607764] 12:38:06,552 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 12:38:06,552 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,553 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 12:38:06,553 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 12:38:06,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1572118636] 12:38:06,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#19502686] 12:38:06,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#1442895194] 12:38:06,567 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 12:38:06,567 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,568 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:38:06,568 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:38:06,568 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:38:06,568 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:38:06,569 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 12:38:06,570 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]]} 12:38:06,570 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 12:38:06,570 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:06,570 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:38:06,570 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 12:38:06,570 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:38:06,570 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:38:06,571 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} 12:38:06,571 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 12:38:06,571 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:38:06,571 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:38:06,571 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:38:06,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#695232991] 12:38:06,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#136551067] 12:38:06,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1546045880] 12:38:06,585 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 12:38:06,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,586 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 12:38:06,586 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]]} 12:38:06,587 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 12:38:06,587 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} 12:38:06,587 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:38:06,588 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:38:06,588 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]]} 12:38:06,588 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 12:38:06,589 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} 12:38:06,589 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:38:06,589 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:38:06,590 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]]} 12:38:06,590 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 12:38:06,590 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} 12:38:06,590 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:38:06,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-1496532680] 12:38:06,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#258098066] 12:38:06,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-2077645726] 12:38:06,602 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 12:38:06,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,803 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:38:06,803 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.118:17355, Removed) 12:38:06,803 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 12:38:06,803 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:38:06,803 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:38:06,803 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:38:06,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#525952575] 12:38:06,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#713931722] 12:38:06,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#1816333989] 12:38:06,809 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:06,809 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 12:38:07,61 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:38:07,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1171023730] 12:38:07,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-407783846] 12:38:07,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-539226733] 12:38:07,65 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 12:38:07,65 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:07,67 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 12:38:07,68 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 12:38:07,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1375272587] 12:38:07,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#596230800] 12:38:07,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#945186609] 12:38:07,81 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 12:38:07,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:07,83 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]]} 12:38:07,83 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:38:07,83 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:38:07,83 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:38:07,83 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:38:07,83 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 12:38:07,83 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:38:07,83 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} 12:38:07,84 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 12:38:07,84 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:38:07,84 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:38:07,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:38:07,84 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:38:07,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:38:07,84 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:38:07,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:38:07,84 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:38:07,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:38:07,84 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 12:38:07,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 12:38:07,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-488653061] 12:38:07,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1006377278] 12:38:07,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#1103757985] 12:38:07,98 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 12:38:07,98 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:07,99 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:38:07,99 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:38:07,99 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:38:07,100 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:38:07,101 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]]} 12:38:07,101 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} 12:38:07,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1985026567] 12:38:07,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1456224766] 12:38:07,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-571904558] 12:38:07,115 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 12:38:07,115 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:07,116 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 12:38:07,116 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]]} 12:38:07,116 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:38:07,116 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:38:07,117 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:38:07,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1086600429] 12:38:07,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-132685926] 12:38:07,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#416766265] 12:38:07,131 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/19/2025 12:38:07.131] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@45d1fa86 [INFO] [pekkoDeadLetter][06/19/2025 12:38:07.131] [test-pekko.actor.default-dispatcher-13] [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'. 12:38:07,131 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:38:07,132 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:38:07,132 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:38:07,132 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:38:07,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 12:38:07,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 12:38:07,133 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:07,133 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:38:07,138 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:07,138 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 12:38:07,138 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@4a69927 12:38:07,138 PM [test-pekko.actor.default-dispatcher-7] [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]]} 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [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} 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 12:38:07,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [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] 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 12:38:07,140 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 [WARN] [06/19/2025 12:38:07.141] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 12:38:07,141 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d864227] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.tmp 12:38:07,141 PM [test-pekko.actor.default-dispatcher-13] [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][06/19/2025 12:38:07.141] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:38:07,145 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d864227] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1 12:38:07,145 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d864227] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1 12:38:07,145 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d864227] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:38:07,145 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d864227] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-19T12:38:07.140800656Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1, size=573, entryCompress=NONE, stateCompress=NONE} 12:38:07,146 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-19T12:38:07.140800656Z 12:38:07,146 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 12:38:07,146 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 12:38:07,146 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 12:38:07,292 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1 12:38:07,292 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:38:07,292 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-19T12:38:07.140800656Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:38:07,294 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:38:07,295 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:38:07,295 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:38:07,297 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:38:07,297 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:38:07,297 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [06/19/2025 12:38:07.297] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@12cfe684 [INFO] [pekkoDeadLetter][06/19/2025 12:38:07.297] [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. [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'. 12:38:07,297 PM [test-pekko.actor.default-dispatcher-14] [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'. 12:38:07,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:07,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1 12:38:07,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:38:07,299 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-19T12:38:07.140800656Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14769966660432925036/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685404AF-08647290.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:38:07,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-19T12:38:07.140800656Z 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 93.84 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 372.8 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:38:07,300 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@5798a05f 12:38:07,300 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#996181621] 12:38:07,301 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#968764484] 12:38:07,301 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#785036465] 12:38:07,301 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:38:07,301 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:38:07,301 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:38:07,303 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 12:38:07,303 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:07,604 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:38:07,735 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:38:07,735 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 131 < election timeout PT0.4S 12:38:07,986 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 12:38:08,186 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 12:38:08,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#322208886] 12:38:08,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-684283641] 12:38:08,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-147351170] 12:38:08,200 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,201 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:38:08,201 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 12:38:08,201 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:38:08,201 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:38:08,201 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:38:08,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-2014967059] 12:38:08,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-275945902] 12:38:08,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1338657473] 12:38:08,216 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,218 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 12:38:08,219 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 12:38:08,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-1367605065] 12:38:08,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-680457422] 12:38:08,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#187392592] 12:38:08,233 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,235 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]]} 12:38:08,235 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:38:08,236 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:38:08,236 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:38:08,236 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:38:08,236 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 12:38:08,236 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} 12:38:08,236 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 12:38:08,236 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 12:38:08,237 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:38:08,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:38:08,237 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 12:38:08,237 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-305659960] 12:38:08,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1124800322] 12:38:08,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-909662819] 12:38:08,250 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,252 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 12:38:08,252 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 12:38:08,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#854717631] 12:38:08,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-2143494072] 12:38:08,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-1102036530] 12:38:08,265 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,266 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 12:38:08,267 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 12:38:08,267 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} 12:38:08,267 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 12:38:08,268 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 12:38:08,269 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:38:08,269 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 12:38:08,269 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. 12:38:08,269 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 12:38:08,270 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 12:38:08,270 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 12:38:08,271 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:38:08,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-2077632123] 12:38:08,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#1584593441] 12:38:08,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#150886149] 12:38:08,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:38:08,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:38:08,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,284 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 12:38:08,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:38:08,284 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:38:08,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:38:08,284 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:38:08,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-1814012544] 12:38:08,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-1483862852] 12:38:08,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-140107310] 12:38:08,297 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,298 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 12:38:08,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#637504653] 12:38:08,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#2005624961] 12:38:08,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1761356127] 12:38:08,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:38:08,313 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 12:38:08,313 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:38:08,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#832894884] 12:38:08,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-1307704003] 12:38:08,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1861569234] [INFO] [06/19/2025 12:38:08.326] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:38:08,326 PM [test-pekko.actor.default-dispatcher-13] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/19/2025 12:38:08.327] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.118:17355) [INFO] [pekkoDeadLetter][06/19/2025 12:38:08.327] [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#846727006] 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'. 12:38:08,328 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#846727006] 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'. 12:38:08,328 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - Exiting completed [INFO] [06/19/2025 12:38:08.328] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - Exiting completed [INFO] [06/19/2025 12:38:08.328] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - Shutting down... 12:38:08,328 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - Shutting down... [INFO] [06/19/2025 12:38:08.329] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.118:17355] - Successfully shut down 12:38:08,329 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.118:17355] - Successfully shut down [INFO] [06/19/2025 12:38:08.331] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.118:17355/system/remoting-terminator] Shutting down remote daemon. 12:38:08,331 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:38:08,331 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/19/2025 12:38:08.331] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.118:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/19/2025 12:38:08.333] [test-pekko.remote.default-remote-dispatcher-11] [pekko://test@10.30.170.118:17355/system/remoting-terminator] Remoting shut down. 12:38:08,333 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.