[DEBUG] [06/27/2025 14:30:17.903] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:30:17,904 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 14:30:17.904] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 14:30:17.904] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/27/2025 14:30:17.940] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.117:17355] with UID [-2025063854084353249] [INFO] [06/27/2025 14:30:17.941] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Starting up, Pekko version [1.0.3] ... 02:30:17,942 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.117:17355] with UID [-2025063854084353249] 02:30:17,942 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Starting up, Pekko version [1.0.3] ... 02:30:17,946 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:30:17,946 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Started up successfully [INFO] [06/27/2025 14:30:17.944] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 14:30:17.944] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Started up successfully [INFO] [06/27/2025 14:30:17.951] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/27/2025 14:30:17.951] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:30:17,951 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:30:17,951 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:30:17,956 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:30:17,956 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,43 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:30:18,43 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:30:18,43 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:30:18,44 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:30:18,44 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:30:18,45 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:30:18,45 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:30:18,45 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:30:18,47 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:30:18,48 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1749721567] 02:30:18,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#2128808765] 02:30:18,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1973591140] 02:30:18,51 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:30:18,51 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,53 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:30:18,53 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 02:30:18,54 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,54 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:30:18,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-993916513] 02:30:18,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#782726962] 02:30:18,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-1882881071] 02:30:18,57 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:30:18,57 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,58 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:30:18,58 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:30:18,58 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:30:18,58 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:30:18,58 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:30:18,58 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:30:18,58 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:30:18,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:30:18,59 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,60 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,60 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:30:18,60 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,60 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:30:18,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1757516129] 02:30:18,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1909874402] 02:30:18,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1361192525] 02:30:18,63 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,63 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:30:18,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-1193928532] 02:30:18,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#527086127] 02:30:18,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1460685300] 02:30:18,65 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:30:18,65 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,66 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,66 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,66 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,66 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:30:18,66 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:30:18,67 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:30:18,67 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:30:18,67 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,67 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,67 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:30:18,68 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:30:18,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-1823869058] 02:30:18,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1902022779] 02:30:18,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1728832051] 02:30:18,70 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:30:18,70 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,71 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:30:18,71 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:30:18,71 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:30:18,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:30:18,71 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:30:18,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:30:18,72 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 02:30:18,72 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:30:18,72 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:30:18,72 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:30:18,72 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:30:18,72 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:30:18,73 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:30:18,73 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,73 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:30:18,73 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:30:18,73 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:30:18,73 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:30:18,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1910841464] 02:30:18,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-541232200] 02:30:18,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#212133206] 02:30:18,76 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:30:18,76 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,76 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:30:18,76 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:30:18,77 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,77 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:30:18,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#1881766515] 02:30:18,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-307445733] 02:30:18,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1759338233] 02:30:18,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-1617684390] 02:30:18,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#126139689] 02:30:18,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-2133145797] 02:30:18,83 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:30:18,83 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,83 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:30:18,83 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,83 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,84 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,84 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:30:18,84 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:30:18,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:30:18,84 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:30:18,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-289627084] 02:30:18,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#609713844] 02:30:18,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#439672459] 02:30:18,86 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/27/2025 14:30:18.088] [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@11a62eb8 [INFO] [pekkoDeadLetter][06/27/2025 14:30:18.089] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,89 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,90 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:30:18,90 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:30:18,90 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:30:18,92 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:30:18,92 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:30:18,92 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:18,92 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:30:18,96 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:18,96 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:30:18,96 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@51faf69e 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:30:18,97 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:30:18,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 02:30:18,99 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d503206] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAAFA-05E48F41.tmp [WARN] [06/27/2025 14:30:18.099] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 14:30:18.099] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,99 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,102 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d503206] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAAFA-05E48F41.v1 02:30:18,102 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d503206] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAAFA-05E48F41.v1 02:30:18,102 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d503206] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:30:18,102 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d503206] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T14:30:18.098864961Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAAFA-05E48F41.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:30:18,102 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T14:30:18.098864961Z 02:30:18,102 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 02:30:18,102 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:30:18,103 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 02:30:18,201 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAAFA-05E48F41.v1 02:30:18,202 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:30:18,202 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T14:30:18.098864961Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8616535564085934955/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAAFA-05E48F41.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:30:18,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1629414044] 02:30:18,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-823229520] 02:30:18,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-861420947] 02:30:18,206 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:30:18,206 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:30:18,206 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:30:18,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-459136328] 02:30:18,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#768669659] 02:30:18,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-755903980] 02:30:18,217 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:30:18,218 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,218 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 02:30:18,219 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:30:18,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1988909393] 02:30:18,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1263710243] 02:30:18,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1135164704] 02:30:18,221 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:30:18,221 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,221 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,221 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,222 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,222 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:30:18,222 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:30:18,222 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#1151036152] 02:30:18,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1616019379] 02:30:18,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-1780850160] 02:30:18,224 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:30:18,224 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,225 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,225 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,225 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:30:18,225 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,225 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,226 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:30:18,226 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,226 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:30:18,226 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,226 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:30:18,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-872391715] 02:30:18,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#2087033773] 02:30:18,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1979065971] 02:30:18,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-502563148] 02:30:18,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-633781159] 02:30:18,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#540111153] 02:30:18,230 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:30:18,230 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,231 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,231 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,231 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:30:18,231 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,231 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,231 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:30:18,232 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,232 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:30:18,232 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,232 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:30:18,232 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,232 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:30:18,233 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,233 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:30:18,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1132227857] 02:30:18,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#607541697] 02:30:18,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-752368179] 02:30:18,235 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:30:18,235 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,238 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,239 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:30:18,239 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:30:18,239 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:30:18,244 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1820455696] 02:30:18,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1580164375] 02:30:18,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#772300378] 02:30:18,278 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:30:18,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,279 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:30:18,280 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 02:30:18,280 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 02:30:18,281 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:30:18,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1156069903] 02:30:18,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-380020483] 02:30:18,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1011893566] 02:30:18,306 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:30:18,306 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,306 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,307 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,307 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:30:18,307 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:30:18,307 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-801993135] 02:30:18,319 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-188553006] 02:30:18,319 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1818795230] 02:30:18,328 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:30:18,328 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,329 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,329 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,329 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:30:18,329 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,329 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#212515975] 02:30:18,333 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#1329903846] 02:30:18,333 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1179511362] 02:30:18,336 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 02:30:18,336 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:30:18,336 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:30:18,337 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [06/27/2025 14:30:18.336] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@1293d747 [INFO] [pekkoDeadLetter][06/27/2025 14:30:18.337] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,342 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,347 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:30:18,347 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:30:18,347 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:30:18,347 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:30:18,354 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:30:18,354 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:30:18,354 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7e6a9ef0 02:30:18,355 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:30:18,356 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:30:18,357 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 02:30:18,357 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:30:18,358 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [06/27/2025 14:30:18.358] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 02:30:18,358 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d333964] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAFA-155AB540.tmp [INFO] [pekkoDeadLetter][06/27/2025 14:30:18.358] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,358 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'. 02:30:18,369 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d333964] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAFA-155AB540.v1 02:30:18,369 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d333964] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAFA-155AB540.v1 02:30:18,369 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d333964] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:30:18,369 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d333964] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T14:30:18.358266176Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAFA-155AB540.v1, size=701, entryCompress=NONE, stateCompress=NONE} 02:30:18,370 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T14:30:18.358266176Z 02:30:18,370 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 02:30:18,371 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:30:18,371 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 02:30:18,458 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAFA-155AB540.v1 02:30:18,458 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:30:18,458 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T14:30:18.358266176Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9296330357756997359/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAFA-155AB540.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 02:30:18,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1643317834] 02:30:18,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1322540673] 02:30:18,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1616276320] 02:30:18,462 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:30:18,462 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:30:18,462 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:30:18,465 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:30:18,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,467 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,468 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 02:30:18,468 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 02:30:18,469 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,469 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:30:18,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-2076809274] 02:30:18,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#141596834] 02:30:18,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#497130799] 02:30:18,472 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:30:18,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,473 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:30:18,473 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:30:18,474 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:30:18,474 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:30:18,474 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:30:18,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1842229200] 02:30:18,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1355544713] 02:30:18,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-439776548] 02:30:18,480 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:30:18,480 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,480 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:30:18,481 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:30:18,481 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,481 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:30:18,481 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:30:18,482 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:30:18,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:30:18,482 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:30:18,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:30:18,482 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:30:18,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:30:18,482 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:30:18,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:30:18,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1321748763] 02:30:18,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-1206095953] 02:30:18,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-205077633] 02:30:18,490 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:30:18,490 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,491 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:30:18,491 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:30:18,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1054200046] 02:30:18,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-2024852197] 02:30:18,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-48788844] 02:30:18,493 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:30:18,493 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,494 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:30:18,494 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:30:18,494 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:30:18,494 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:30:18,494 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,495 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:30:18,495 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:30:18,496 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:30:18,496 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:30:18,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#1817246743] 02:30:18,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-789878283] 02:30:18,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1191727360] 02:30:18,504 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:30:18,504 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,504 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:30:18,505 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,505 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:30:18,505 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,506 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:30:18,513 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:30:18,514 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,514 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:30:18,514 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,514 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:30:18,515 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:30:18,515 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:30:18,515 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:30:18,515 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,515 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:30:18,515 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#555790602] 02:30:18,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-394925997] 02:30:18,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-537975123] 02:30:18,521 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:30:18,521 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,721 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:30:18,721 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.117:17355, Removed) 02:30:18,721 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:30:18,722 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:30:18,722 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:30:18,722 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:30:18,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#1464685336] 02:30:18,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#282742032] 02:30:18,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1195793701] 02:30:18,737 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,737 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:30:18,888 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:30:18,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-401971888] 02:30:18,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#1403724217] 02:30:18,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#110120087] 02:30:18,901 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:30:18,901 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,903 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:30:18,903 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:30:18,903 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1534368800] 02:30:18,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-391840266] 02:30:18,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#2139043008] 02:30:18,916 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:30:18,916 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,917 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:30:18,917 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:30:18,917 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:30:18,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:30:18,918 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:30:18,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:30:18,918 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:30:18,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:30:18,918 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:30:18,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:30:18,918 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:30:18,918 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:30:18,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#1203097857] 02:30:18,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#668812856] 02:30:18,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-388277147] 02:30:18,931 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:30:18,931 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,932 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:30:18,932 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:30:18,932 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:30:18,932 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:30:18,932 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 02:30:18,933 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,933 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1880046861] 02:30:18,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-340353388] 02:30:18,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-1151222046] 02:30:18,946 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:30:18,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:18,947 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:30:18,947 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:30:18,948 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:30:18,948 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:30:18,948 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:30:18,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-2023958675] 02:30:18,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1874487512] 02:30:18,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#763871695] 02:30:18,963 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/27/2025 14:30:18.964] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@774a743a [INFO] [pekkoDeadLetter][06/27/2025 14:30:18.964] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,964 PM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,965 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:30:18,965 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:30:18,965 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:30:18,966 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:30:18,966 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:30:18,966 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:18,966 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:30:18,970 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:18,970 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:30:18,970 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@45ab9a41 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:30:18,971 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:30:18,972 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:30:18,973 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:30:18,973 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 02:30:18,973 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d690096] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.tmp [WARN] [06/27/2025 14:30:18.973] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 14:30:18.973] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:18,973 PM [test-pekko.actor.default-dispatcher-14] [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'. 02:30:18,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d690096] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1 02:30:18,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d690096] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1 02:30:18,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d690096] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:30:18,978 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d690096] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T14:30:18.972932976Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:30:18,979 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T14:30:18.972932976Z 02:30:18,979 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 02:30:18,979 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:30:18,979 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 02:30:19,76 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1 02:30:19,76 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:30:19,76 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T14:30:18.972932976Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:30:19,77 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:30:19,78 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:30:19,78 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/27/2025 14:30:19.079] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3ada6cb [INFO] [pekkoDeadLetter][06/27/2025 14:30:19.079] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:19,79 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:19,79 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:30:19,80 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:30:19,80 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:30:19,81 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:19,81 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1 02:30:19,81 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:30:19,81 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T14:30:18.972932976Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2272723302496405744/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAFA-39FDC770.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:30:19,81 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T14:30:18.972932976Z 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 262.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 508.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:30:19,82 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6ecfce16 02:30:19,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-315326855] 02:30:19,93 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#507279094] 02:30:19,93 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#1402057734] 02:30:19,93 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:30:19,94 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:30:19,94 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:30:19,96 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:30:19,96 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:19,397 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:30:19,527 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:30:19,527 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:30:19,778 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:30:19,978 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:30:19,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1562790123] 02:30:19,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1755501279] 02:30:19,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1188326200] 02:30:20,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,1 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:30:20,1 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:30:20,1 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:30:20,1 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:30:20,2 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:30:20,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-272222796] 02:30:20,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#1591604159] 02:30:20,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1825981593] 02:30:20,15 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,17 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:30:20,18 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:30:20,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-110831263] 02:30:20,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1247771620] 02:30:20,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-525314661] 02:30:20,32 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:20,33 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:30:20,33 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:30:20,33 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:30:20,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:30:20,33 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:30:20,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-1008496154] 02:30:20,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#399093092] 02:30:20,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1379807549] 02:30:20,46 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,47 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:30:20,47 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:30:20,48 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#1613567918] 02:30:20,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#395305706] 02:30:20,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#895058677] 02:30:20,62 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,62 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:30:20,63 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 02:30:20,63 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:30:20,64 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:30:20,64 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 02:30:20,65 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:30:20,65 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:30:20,65 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 02:30:20,65 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 02:30:20,66 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 02:30:20,66 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:30:20,67 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:30:20,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#960223198] 02:30:20,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-959003555] 02:30:20,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#1421547029] 02:30:20,81 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,81 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:30:20,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:30:20,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,82 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:30:20,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:30:20,83 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:30:20,83 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:30:20,83 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:30:20,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#500316445] 02:30:20,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1434579137] 02:30:20,84 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1142350840] 02:30:20,87 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,89 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:30:20,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-362366856] 02:30:20,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-977785425] 02:30:20,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-2068426570] 02:30:20,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:30:20,93 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:30:20,93 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:30:20,93 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-971945413] 02:30:20,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-1775036537] 02:30:20,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1030530227] [INFO] [06/27/2025 14:30:20.094] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:30:20,95 PM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 14:30:20.095] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.117:17355) [INFO] [pekkoDeadLetter][06/27/2025 14:30:20.095] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1221859865] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:20,95 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#1221859865] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:30:20,96 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Exiting completed 02:30:20,96 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Shutting down... 02:30:20,96 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.117:17355] - Successfully shut down [INFO] [06/27/2025 14:30:20.096] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Exiting completed [INFO] [06/27/2025 14:30:20.096] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Shutting down... [INFO] [06/27/2025 14:30:20.096] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.117:17355] - Successfully shut down [INFO] [06/27/2025 14:30:20.098] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.117:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/27/2025 14:30:20.098] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.117:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:30:20,98 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:30:20,98 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 02:30:20,100 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/27/2025 14:30:20.100] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.117:17355/system/remoting-terminator] Remoting shut down.