[DEBUG] [06/19/2025 17:06:42.626] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:06:42,626 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/19/2025 17:06:42.626] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/19/2025 17:06:42.626] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/19/2025 17:06:42.636] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.117:17355] with UID [-8823021364278181109] 05:06:42,636 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.117:17355] with UID [-8823021364278181109] [INFO] [06/19/2025 17:06:42.637] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - Starting up, Pekko version [1.0.3] ... 05:06:42,637 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/19/2025 17:06:42.639] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 05:06:42,639 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/19/2025 17:06:42.639] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - Started up successfully 05:06:42,639 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - Started up successfully [INFO] [06/19/2025 17:06:42.640] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.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/19/2025 17:06:42.640] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:06:42,640 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:06:42,640 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:06:42,651 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:06:42,651 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,733 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:06:42,734 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:06:42,734 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:06:42,735 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:06:42,736 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:06:42,736 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:06:42,736 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:06:42,737 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:06:42,739 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:06:42,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1076317623] 05:06:42,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1174957495] 05:06:42,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1816415251] 05:06:42,753 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:06:42,754 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,756 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]]} 05:06:42,757 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 05:06:42,757 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} 05:06:42,758 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:06:42,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-160476178] 05:06:42,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1862256128] 05:06:42,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1228409120] 05:06:42,771 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:06:42,771 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,772 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:06:42,772 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:06:42,772 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:06:42,772 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:06:42,773 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:06:42,773 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:06:42,773 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:06:42,774 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:06:42,775 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 05:06:42,776 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]]} 05:06:42,776 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 05:06:42,777 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} 05:06:42,777 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:06:42,777 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-704200023] 05:06:42,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-66326039] 05:06:42,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1409104702] 05:06:42,790 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,791 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:06:42,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-855300084] 05:06:42,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1240992332] 05:06:42,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#544679438] 05:06:42,806 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:06:42,806 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,806 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 05:06:42,807 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]]} 05:06:42,807 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:42,807 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:06:42,808 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:06:42,808 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:06:42,808 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:06:42,808 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} 05:06:42,808 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:42,808 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:06:42,810 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:06:42,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-481618551] 05:06:42,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-1899661408] 05:06:42,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1863333005] 05:06:42,824 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:06:42,824 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,825 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]]} 05:06:42,825 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:42,825 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:06:42,825 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:06:42,825 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:06:42,825 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:06:42,825 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} 05:06:42,826 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:06:42,826 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:06:42,826 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:06:42,826 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:06:42,826 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:06:42,826 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:06:42,827 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]]} 05:06:42,827 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:06:42,828 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:06:42,828 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:06:42,828 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:06:42,828 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:06:42,828 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:06:42,828 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} 05:06:42,828 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:06:42,828 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:06:42,828 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:06:42,829 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:06:42,829 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1657268708] 05:06:42,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-1083144407] 05:06:42,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#1568338899] 05:06:42,842 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:06:42,842 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,843 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 05:06:42,844 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 05:06:42,844 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} 05:06:42,844 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:06:42,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#1257376900] 05:06:42,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#157353686] 05:06:42,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#670931329] 05:06:42,857 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-229650536] 05:06:42,874 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1796822186] 05:06:42,874 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-1876328131] 05:06:42,877 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:06:42,877 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:42,877 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:06:42,877 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 05:06:42,878 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]]} 05:06:42,878 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:42,878 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:06:42,878 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:06:42,878 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:06:42,878 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:06:42,879 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} 05:06:42,879 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:42,879 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:06:42,880 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:06:42,880 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:06:42,880 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:06:42,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#871901446] 05:06:42,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#213863879] 05:06:42,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1487216341] 05:06:42,895 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/19/2025 17:06:42.896] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7e52749e 05:06:42,897 PM [test-pekko.actor.default-dispatcher-11] [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'. [INFO] [pekkoDeadLetter][06/19/2025 17:06:42.897] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:42,898 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 05:06:42,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:06:42,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:06:42,901 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:06:42,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:06:42,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:42,902 PM [test-pekko.actor.default-dispatcher-6] [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 05:06:42,907 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:42,907 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:06:42,907 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@5fa1cab2 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [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]]} 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [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} 05:06:42,907 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 05:06:42,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 05:06:42,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:06:42,909 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 05:06:42,909 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991072] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685443A2-363147AD.tmp [WARN] [06/19/2025 17:06:42.909] [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/19/2025 17:06:42.909] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:42,910 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:42,914 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991072] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685443A2-363147AD.v1 05:06:42,915 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991072] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685443A2-363147AD.v1 05:06:42,915 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991072] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:06:42,915 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d991072] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-19T17:06:42.909199277Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685443A2-363147AD.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:06:42,915 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-19T17:06:42.909199277Z 05:06:42,915 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 05:06:42,915 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:06:42,916 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 05:06:43,59 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685443A2-363147AD.v1 05:06:43,59 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:06:43,59 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-19T17:06:42.909199277Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15346948518704352894/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685443A2-363147AD.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:06:43,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1906755569] 05:06:43,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-2025211354] 05:06:43,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#263615121] 05:06:43,73 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:06:43,74 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:06:43,74 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:06:43,77 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1773777515] 05:06:43,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1113106523] 05:06:43,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1717515446] 05:06:43,92 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:06:43,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,94 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 05:06:43,94 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:06:43,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1437894980] 05:06:43,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1936989155] 05:06:43,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#355593540] 05:06:43,108 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:06:43,108 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,109 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 05:06:43,110 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]]} 05:06:43,110 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:43,110 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:06:43,110 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:06:43,110 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:06:43,110 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:06:43,110 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} 05:06:43,111 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:43,111 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:06:43,111 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:06:43,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-559694326] 05:06:43,122 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-1686843797] 05:06:43,122 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-2046749100] 05:06:43,124 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:06:43,124 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,125 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 05:06:43,126 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]]} 05:06:43,126 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 05:06:43,126 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} 05:06:43,126 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:43,127 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:06:43,127 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]]} 05:06:43,127 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 05:06:43,128 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} 05:06:43,128 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:06:43,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-560173048] 05:06:43,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-885999212] 05:06:43,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-599250929] 05:06:43,141 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#1265406153] 05:06:43,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1622276848] 05:06:43,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#1175168241] 05:06:43,154 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:06:43,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,155 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 05:06:43,155 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]]} 05:06:43,155 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 05:06:43,156 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} 05:06:43,156 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:43,156 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:06:43,156 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]]} 05:06:43,157 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 05:06:43,157 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} 05:06:43,157 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:06:43,158 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]]} 05:06:43,158 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 05:06:43,158 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} 05:06:43,158 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:06:43,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-858463162] 05:06:43,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-10634774] 05:06:43,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#1008271272] 05:06:43,172 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:06:43,172 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,173 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]]} 05:06:43,174 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:43,174 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:06:43,174 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:06:43,174 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:06:43,174 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:06:43,174 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} 05:06:43,174 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:06:43,174 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:06:43,175 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:06:43,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#680619527] 05:06:43,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1204004008] 05:06:43,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1509701438] 05:06:43,188 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:06:43,188 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,190 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:06:43,191 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 05:06:43,191 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 05:06:43,193 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:06:43,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1953744932] 05:06:43,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#911061205] 05:06:43,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1691755081] 05:06:43,209 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:06:43,209 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,210 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 05:06:43,211 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]]} 05:06:43,211 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:43,211 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:06:43,211 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:06:43,211 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:06:43,212 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:06:43,212 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} 05:06:43,212 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:43,212 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:06:43,213 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:06:43,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1430455605] 05:06:43,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1931749717] 05:06:43,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-204147187] 05:06:43,227 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:06:43,227 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,228 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 05:06:43,228 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 05:06:43,229 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 05:06:43,229 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} 05:06:43,230 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:43,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1162815735] 05:06:43,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#228555308] 05:06:43,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-423865856] 05:06:43,243 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/19/2025 17:06:43.245] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4a9b2df6 [INFO] [pekkoDeadLetter][06/19/2025 17:06:43.245] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:43,245 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:43,245 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:06:43,245 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:06:43,245 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:06:43,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:06:43,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:06:43,247 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:06:43,247 PM [test-pekko.actor.default-dispatcher-12] [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 05:06:43,250 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:06:43,250 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 05:06:43,250 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@4892d58b 05:06:43,251 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]]} 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:06:43,251 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} 05:06:43,251 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 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:06:43,251 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [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] 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:06:43,252 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 05:06:43,252 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d834995] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685443A3-0F113B4A.tmp [WARN] [06/19/2025 17:06:43.253] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/19/2025 17:06:43.253] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:43,253 PM [test-pekko.actor.default-dispatcher-5] [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'. 05:06:43,254 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d834995] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685443A3-0F113B4A.v1 05:06:43,254 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d834995] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685443A3-0F113B4A.v1 05:06:43,254 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d834995] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:06:43,255 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d834995] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-19T17:06:43.252787530Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685443A3-0F113B4A.v1, size=701, entryCompress=NONE, stateCompress=NONE} 05:06:43,255 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-19T17:06:43.252787530Z 05:06:43,255 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 05:06:43,255 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:06:43,255 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 05:06:43,403 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685443A3-0F113B4A.v1 05:06:43,404 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:06:43,404 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-19T17:06:43.252787530Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12838402915246498060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685443A3-0F113B4A.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 05:06:43,406 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1391229269] 05:06:43,417 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1853781129] 05:06:43,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1928756578] 05:06:43,418 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:06:43,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:06:43,418 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:06:43,421 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:06:43,421 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,422 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 05:06:43,422 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]]} 05:06:43,422 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 05:06:43,423 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} 05:06:43,423 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:06:43,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-855731164] 05:06:43,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1351019905] 05:06:43,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#1577805029] 05:06:43,436 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:06:43,436 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,437 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 05:06:43,438 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:06:43,438 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:06:43,438 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:06:43,438 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:06:43,439 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-783551949] 05:06:43,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#1009388230] 05:06:43,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-1471000666] 05:06:43,452 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:06:43,452 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,452 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 05:06:43,453 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]]} 05:06:43,453 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:06:43,453 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:06:43,453 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:06:43,453 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:06:43,454 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:06:43,454 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:06:43,454 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:06:43,454 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:06:43,454 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:06:43,454 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} 05:06:43,454 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:06:43,454 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:06:43,454 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:06:43,454 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:06:43,454 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:06:43,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:06:43,455 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:06:43,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:06:43,455 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:06:43,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:06:43,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1904319159] 05:06:43,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#72034287] 05:06:43,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1077786343] 05:06:43,468 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:06:43,468 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,468 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:06:43,468 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:06:43,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1876424257] 05:06:43,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-517412470] 05:06:43,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#419915699] 05:06:43,482 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:06:43,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,483 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:06:43,483 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:06:43,484 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:06:43,484 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:06:43,484 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 05:06:43,485 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]]} 05:06:43,485 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 05:06:43,485 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:43,485 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:06:43,485 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:06:43,485 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:06:43,486 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:06:43,486 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} 05:06:43,486 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:06:43,486 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:06:43,486 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:06:43,486 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:06:43,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-823732242] 05:06:43,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#2082499407] 05:06:43,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#2111627313] 05:06:43,500 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:06:43,500 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,501 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 05:06:43,501 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]]} 05:06:43,501 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 05:06:43,502 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} 05:06:43,502 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:06:43,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:06:43,503 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]]} 05:06:43,503 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 05:06:43,503 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} 05:06:43,504 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:06:43,504 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:06:43,504 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]]} 05:06:43,505 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 05:06:43,505 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} 05:06:43,505 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:06:43,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#313442741] 05:06:43,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1760168732] 05:06:43,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#270957512] 05:06:43,520 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:06:43,520 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,720 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:06:43,720 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.117:17355, Removed) 05:06:43,720 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:06:43,721 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:06:43,721 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:06:43,721 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:06:43,721 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1777541114] 05:06:43,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1566888871] 05:06:43,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#617301648] 05:06:43,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,726 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:06:43,877 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:06:43,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#593927141] 05:06:43,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#1569979743] 05:06:43,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#474423043] 05:06:43,882 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:06:43,883 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,885 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 05:06:43,885 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:06:43,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1019899983] 05:06:43,889 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#436064963] 05:06:43,889 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-1642291760] 05:06:43,891 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:06:43,891 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,892 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]]} 05:06:43,892 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:06:43,892 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:06:43,892 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:06:43,892 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:06:43,892 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:06:43,893 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:06:43,893 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} 05:06:43,893 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:06:43,893 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:06:43,893 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:06:43,893 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:06:43,893 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:06:43,893 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:06:43,893 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:06:43,893 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:06:43,893 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:06:43,893 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:06:43,894 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:06:43,894 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:06:43,894 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#686575024] 05:06:43,895 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#250712438] 05:06:43,895 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#65938780] 05:06:43,898 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:06:43,898 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,898 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:06:43,898 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:06:43,898 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:06:43,898 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:06:43,900 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]]} 05:06:43,900 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} 05:06:43,900 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1187344975] 05:06:43,901 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#537210690] 05:06:43,901 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-768258522] 05:06:43,904 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:06:43,905 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:43,906 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 05:06:43,906 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]]} 05:06:43,906 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:06:43,906 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:06:43,907 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:06:43,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-1636118450] 05:06:43,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#2104586276] 05:06:43,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-349295899] 05:06:43,920 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/19/2025 17:06:43.921] [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@2c860bf [INFO] [pekkoDeadLetter][06/19/2025 17:06:43.921] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 05:06:43,921 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:43,922 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:06:43,922 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:06:43,922 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:06:43,924 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:06:43,924 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:06:43,924 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:43,924 PM [test-pekko.actor.default-dispatcher-5] [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 05:06:43,928 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:43,928 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:06:43,928 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@f0ed533 05:06:43,928 PM [test-pekko.actor.default-dispatcher-12] [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]]} 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [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} 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 05:06:43,929 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [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] 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:06:43,930 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 05:06:43,930 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d880855] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.tmp [WARN] [06/19/2025 17:06:43.930] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/19/2025 17:06:43.930] [test-pekko.actor.default-dispatcher-12] [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'. 05:06:43,930 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:06:43,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d880855] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1 05:06:43,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d880855] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1 05:06:43,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d880855] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:06:43,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d880855] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-19T17:06:43.930560264Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:06:43,933 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-19T17:06:43.930560264Z 05:06:43,933 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 05:06:43,933 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:06:43,933 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 05:06:44,81 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1 05:06:44,81 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:06:44,81 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-19T17:06:43.930560264Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:06:44,83 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:06:44,93 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:06:44,93 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/19/2025 17:06:44.195] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@34dae7f5 [INFO] [pekkoDeadLetter][06/19/2025 17:06:44.196] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 05:06:44,196 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'. 05:06:44,196 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:06:44,196 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:06:44,197 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:06:44,198 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:44,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1 05:06:44,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:06:44,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-19T17:06:43.930560264Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13605461072431070442/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685443A3-37773908.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:06:44,199 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:06:44,200 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-19T17:06:43.930560264Z 05:06:44,200 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:44,200 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 101.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 05:06:44,200 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 05:06:44,200 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 05:06:44,201 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 462.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 05:06:44,201 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 05:06:44,201 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:06:44,201 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@4dc31b03 05:06:44,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1195391937] 05:06:44,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-2092834113] 05:06:44,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-787916548] 05:06:44,306 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:06:44,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:06:44,307 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:06:44,310 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:06:44,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:44,610 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:06:44,740 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:06:44,740 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:06:44,991 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:06:45,191 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:06:45,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-2024037182] 05:06:45,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#2030603366] 05:06:45,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#603176198] 05:06:45,205 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,206 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:06:45,206 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:06:45,206 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:06:45,206 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:06:45,207 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:06:45,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-1462440343] 05:06:45,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-2077683037] 05:06:45,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1983380717] 05:06:45,221 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,223 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 05:06:45,224 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:06:45,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-79483528] 05:06:45,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1361374754] 05:06:45,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#129259990] 05:06:45,239 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,242 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]]} 05:06:45,242 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:06:45,242 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:06:45,242 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:06:45,242 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:06:45,242 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:06:45,242 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} 05:06:45,243 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:06:45,243 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:06:45,243 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:06:45,243 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:06:45,243 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:06:45,244 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#1601925656] 05:06:45,255 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#886737502] 05:06:45,255 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-747526457] 05:06:45,257 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,258 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 05:06:45,259 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:06:45,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#1228307752] 05:06:45,260 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-948786518] 05:06:45,260 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-1913216932] 05:06:45,262 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,263 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 05:06:45,263 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 05:06:45,264 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} 05:06:45,265 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:06:45,266 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 05:06:45,267 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:06:45,267 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:06:45,267 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. 05:06:45,267 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 05:06:45,268 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 05:06:45,268 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:06:45,269 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:06:45,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#145219207] 05:06:45,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-301992405] 05:06:45,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#121234874] 05:06:45,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:06:45,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:06:45,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,271 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:06:45,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:06:45,271 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:06:45,271 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:06:45,272 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:06:45,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-1222453639] 05:06:45,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1898987508] 05:06:45,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#328183593] 05:06:45,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,274 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:06:45,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#829382665] 05:06:45,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#2009855372] 05:06:45,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-23889765] 05:06:45,276 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:06:45,277 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 05:06:45,277 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:06:45,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#1988262906] 05:06:45,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-2006482792] 05:06:45,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1478124746] [INFO] [06/19/2025 17:06:45.278] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:06:45,278 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/19/2025 17:06:45.279] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.117:17355) [INFO] [pekkoDeadLetter][06/19/2025 17:06:45.279] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-147116627] 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'. 05:06:45,279 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-147116627] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/19/2025 17:06:45.279] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - Exiting completed [INFO] [06/19/2025 17:06:45.279] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - Shutting down... 05:06:45,279 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - Exiting completed 05:06:45,279 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - Shutting down... 05:06:45,279 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.117:17355] - Successfully shut down [INFO] [06/19/2025 17:06:45.279] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.117:17355] - Successfully shut down 05:06:45,282 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/19/2025 17:06:45.281] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.117:17355/system/remoting-terminator] Shutting down remote daemon. 05:06:45,282 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/19/2025 17:06:45.282] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.117:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 05:06:45,283 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/19/2025 17:06:45.283] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.117:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [06/19/2025 17:06:45.283] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger