[DEBUG] [06/24/2025 11:36:52.479] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:36:52,479 AM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/24/2025 11:36:52.479] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/24/2025 11:36:52.479] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/24/2025 11:36:52.500] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.132:17355] with UID [-6044520326620911349] 11:36:52,500 AM [test-pekko.actor.default-dispatcher-4] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.132:17355] with UID [-6044520326620911349] [INFO] [06/24/2025 11:36:52.500] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - Starting up, Pekko version [1.0.3] ... 11:36:52,501 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/24/2025 11:36:52.508] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/24/2025 11:36:52.508] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - Started up successfully 11:36:52,508 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:36:52,508 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - Started up successfully [INFO] [06/24/2025 11:36:52.509] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:36:52,509 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:36:52,509 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [06/24/2025 11:36:52.509] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:36:52,529 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 11:36:52,529 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,623 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:36:52,623 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:36:52,623 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:52,625 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:36:52,625 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 11:36:52,625 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 11:36:52,625 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 11:36:52,625 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 11:36:52,628 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 11:36:52,629 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-139447896] 11:36:52,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#1823070689] 11:36:52,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#2133472952] 11:36:52,642 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 11:36:52,642 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,646 AM [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]]} 11:36:52,646 AM [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 11:36:52,647 AM [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} 11:36:52,648 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 11:36:52,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#664540833] 11:36:52,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1929900523] 11:36:52,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1984430525] 11:36:52,661 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 11:36:52,662 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,663 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:36:52,663 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:36:52,663 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:52,664 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:36:52,664 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 11:36:52,664 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 11:36:52,664 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 11:36:52,665 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:36:52,666 AM [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 11:36:52,666 AM [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]]} 11:36:52,667 AM [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 11:36:52,667 AM [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} 11:36:52,667 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 11:36:52,668 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-1121843006] 11:36:52,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1809979773] 11:36:52,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#473361488] 11:36:52,681 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,682 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 11:36:52,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1125635961] 11:36:52,700 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-2032148507] 11:36:52,700 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-1476608891] 11:36:52,703 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 11:36:52,703 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,704 AM [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 11:36:52,705 AM [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]]} 11:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:36:52,706 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:36:52,706 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:36:52,706 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:36:52,706 AM [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} 11:36:52,706 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:52,706 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:36:52,708 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:36:52,711 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1294655974] 11:36:52,722 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-225120328] 11:36:52,722 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1426852968] 11:36:52,725 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 11:36:52,725 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,727 AM [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]]} 11:36:52,728 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:52,728 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 11:36:52,728 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:36:52,728 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:36:52,728 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 11:36:52,729 AM [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} 11:36:52,730 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:36:52,730 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:36:52,730 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:36:52,730 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:36:52,730 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:36:52,730 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:36:52,734 AM [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]]} 11:36:52,734 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:36:52,734 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 11:36:52,734 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:36:52,734 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 11:36:52,734 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 11:36:52,734 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 11:36:52,734 AM [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} 11:36:52,734 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 11:36:52,735 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:36:52,735 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:36:52,735 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:36:52,736 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-744458427] 11:36:52,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-422875098] 11:36:52,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-235113977] 11:36:52,748 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 11:36:52,748 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,749 AM [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 11:36:52,750 AM [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 11:36:52,750 AM [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} 11:36:52,750 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 11:36:52,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#2085276067] 11:36:52,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1134573795] 11:36:52,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#233056788] 11:36:52,763 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-1737581781] 11:36:52,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1466748074] 11:36:52,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1399719583] 11:36:52,778 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 11:36:52,778 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,778 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 11:36:52,778 AM [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 11:36:52,779 AM [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]]} 11:36:52,779 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:52,779 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:36:52,779 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:36:52,779 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:36:52,779 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:36:52,779 AM [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} 11:36:52,780 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:52,780 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 11:36:52,780 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 11:36:52,780 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 11:36:52,780 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 11:36:52,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#328295099] 11:36:52,791 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#34603766] 11:36:52,791 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1525552115] 11:36:52,798 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/24/2025 11:36:52.800] [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@1bd3a954 [INFO] [pekkoDeadLetter][06/24/2025 11:36:52.800] [test-pekko.actor.default-dispatcher-5] [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'. 11:36:52,801 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:52,802 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 11:36:52,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 11:36:52,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 11:36:52,804 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 11:36:52,804 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 11:36:52,804 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:52,804 AM [test-pekko.actor.default-dispatcher-4] [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 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@3720131e 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [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]]} 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:36:52,809 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [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} 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 11:36:52,810 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [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] 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 11:36:52,810 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 [WARN] [06/24/2025 11:36:52.811] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/24/2025 11:36:52.810] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:52,811 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d595189] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685A8DD4-30536D3F.tmp 11:36:52,811 AM [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'. 11:36:52,815 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d595189] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685A8DD4-30536D3F.v1 11:36:52,815 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d595189] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685A8DD4-30536D3F.v1 11:36:52,815 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d595189] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:36:52,815 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d595189] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-24T11:36:52.810773823Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685A8DD4-30536D3F.v1, size=555, entryCompress=NONE, stateCompress=NONE} 11:36:52,815 AM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-24T11:36:52.810773823Z 11:36:52,815 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 11:36:52,816 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 11:36:52,816 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 11:36:52,961 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685A8DD4-30536D3F.v1 11:36:52,961 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:36:52,961 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-24T11:36:52.810773823Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5365105292160212441/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685A8DD4-30536D3F.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 11:36:52,963 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1190683188] 11:36:52,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#463619580] 11:36:52,974 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1096176114] 11:36:52,974 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 11:36:52,974 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 11:36:52,974 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 11:36:52,978 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,980 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1060125788] 11:36:52,991 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#72748655] 11:36:52,991 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-909040676] 11:36:52,993 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 11:36:52,993 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:52,994 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 11:36:52,994 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 11:36:52,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1530167150] 11:36:53,5 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1202683204] 11:36:53,5 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1537046662] 11:36:53,7 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 11:36:53,7 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,8 AM [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 11:36:53,9 AM [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]]} 11:36:53,9 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:53,9 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:36:53,9 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:36:53,9 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:36:53,9 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:36:53,9 AM [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} 11:36:53,9 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:53,9 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:36:53,10 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:36:53,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-967868168] 11:36:53,21 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1285545147] 11:36:53,21 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1757086177] 11:36:53,23 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 11:36:53,23 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,24 AM [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 11:36:53,24 AM [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]]} 11:36:53,25 AM [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 11:36:53,25 AM [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} 11:36:53,25 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:53,25 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 11:36:53,26 AM [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]]} 11:36:53,26 AM [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 11:36:53,27 AM [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} 11:36:53,27 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 11:36:53,27 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-871187449] 11:36:53,38 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#663835882] 11:36:53,38 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#875162153] 11:36:53,40 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#594441115] 11:36:53,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#569234700] 11:36:53,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#2052692613] 11:36:53,53 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 11:36:53,53 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,54 AM [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 11:36:53,54 AM [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]]} 11:36:53,55 AM [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 11:36:53,55 AM [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} 11:36:53,55 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:53,55 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:36:53,56 AM [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]]} 11:36:53,57 AM [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 11:36:53,57 AM [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} 11:36:53,57 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:36:53,58 AM [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]]} 11:36:53,58 AM [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 11:36:53,58 AM [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} 11:36:53,58 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:36:53,58 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#65171686] 11:36:53,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#1779694665] 11:36:53,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#766871534] 11:36:53,71 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 11:36:53,71 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,72 AM [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]]} 11:36:53,72 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:53,72 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 11:36:53,72 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 11:36:53,72 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:36:53,72 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 11:36:53,73 AM [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} 11:36:53,73 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 11:36:53,73 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 11:36:53,73 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 11:36:53,73 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-550239740] 11:36:53,84 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#252133201] 11:36:53,84 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-164245647] 11:36:53,86 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 11:36:53,86 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,88 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:36:53,89 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 11:36:53,89 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 11:36:53,91 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:36:53,91 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-883448606] 11:36:53,102 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1436443617] 11:36:53,102 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#796658475] 11:36:53,106 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 11:36:53,106 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,106 AM [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 11:36:53,107 AM [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]]} 11:36:53,107 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:53,107 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:36:53,107 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:36:53,107 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:36:53,107 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:36:53,107 AM [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} 11:36:53,107 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:53,107 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:36:53,107 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:36:53,111 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#487408022] 11:36:53,122 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-507168244] 11:36:53,122 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1864259265] 11:36:53,124 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 11:36:53,124 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,124 AM [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 11:36:53,125 AM [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]]} 11:36:53,125 AM [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 11:36:53,126 AM [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} 11:36:53,126 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:53,126 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1327266100] 11:36:53,137 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-254124892] 11:36:53,137 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#1663271488] 11:36:53,139 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/24/2025 11:36:53.140] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@1bf4a7f4 [INFO] [pekkoDeadLetter][06/24/2025 11:36:53.140] [test-pekko.actor.default-dispatcher-15] [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'. 11:36:53,140 AM [test-pekko.actor.default-dispatcher-4] [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'. 11:36:53,141 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 11:36:53,141 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 11:36:53,141 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 11:36:53,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 11:36:53,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 11:36:53,143 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 11:36:53,143 AM [test-pekko.actor.default-dispatcher-15] [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 11:36:53,148 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 11:36:53,148 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 11:36:53,148 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@44fb3d76 11:36:53,148 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:36:53,148 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [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} 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 11:36:53,149 AM [test-pekko.actor.default-dispatcher-15] [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] 11:36:53,150 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 11:36:53,150 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 11:36:53,150 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 11:36:53,150 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 11:36:53,150 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 11:36:53,150 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d495299] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685A8DD5-08F254B5.tmp [WARN] [06/24/2025 11:36:53.150] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/24/2025 11:36:53.150] [test-pekko.actor.default-dispatcher-15] [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'. 11:36:53,150 AM [test-pekko.actor.default-dispatcher-4] [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'. 11:36:53,152 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d495299] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685A8DD5-08F254B5.v1 11:36:53,152 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d495299] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685A8DD5-08F254B5.v1 11:36:53,152 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d495299] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:36:53,152 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d495299] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-24T11:36:53.150099125Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685A8DD5-08F254B5.v1, size=701, entryCompress=NONE, stateCompress=NONE} 11:36:53,152 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-24T11:36:53.150099125Z 11:36:53,153 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 11:36:53,153 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 11:36:53,153 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 11:36:53,300 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685A8DD5-08F254B5.v1 11:36:53,300 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:36:53,301 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-24T11:36:53.150099125Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16594479640825728702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685A8DD5-08F254B5.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 11:36:53,302 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1754068221] 11:36:53,313 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-524735057] 11:36:53,314 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#741437595] 11:36:53,314 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 11:36:53,315 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 11:36:53,315 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 11:36:53,319 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 11:36:53,319 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,321 AM [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 11:36:53,322 AM [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]]} 11:36:53,322 AM [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 11:36:53,322 AM [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} 11:36:53,323 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 11:36:53,323 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1405469162] 11:36:53,334 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-33980612] 11:36:53,334 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#356461372] 11:36:53,336 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 11:36:53,337 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,338 AM [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 11:36:53,339 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 11:36:53,339 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 11:36:53,339 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 11:36:53,339 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 11:36:53,340 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#912694509] 11:36:53,350 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1003090622] 11:36:53,350 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#916452134] 11:36:53,352 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 11:36:53,353 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,353 AM [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 11:36:53,355 AM [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]]} 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 11:36:53,355 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:53,355 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 11:36:53,355 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 11:36:53,356 AM [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} 11:36:53,356 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 11:36:53,356 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 11:36:53,356 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:36:53,356 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:36:53,356 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:36:53,356 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:36:53,357 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:36:53,357 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:36:53,357 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:36:53,357 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 11:36:53,357 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1307849741] 11:36:53,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#273298914] 11:36:53,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#19802736] 11:36:53,371 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 11:36:53,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,372 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 11:36:53,372 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 11:36:53,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1339988373] 11:36:53,385 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#2077998050] 11:36:53,385 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#951421093] 11:36:53,387 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 11:36:53,387 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,388 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:36:53,388 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:36:53,388 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:53,388 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:36:53,389 AM [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 11:36:53,390 AM [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]]} 11:36:53,390 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 11:36:53,391 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:53,391 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:36:53,391 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 11:36:53,391 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 11:36:53,391 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 11:36:53,391 AM [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} 11:36:53,391 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 11:36:53,391 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:36:53,392 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:36:53,392 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:36:53,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-1437665041] 11:36:53,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#1948124325] 11:36:53,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1812231190] 11:36:53,398 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 11:36:53,398 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,399 AM [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 11:36:53,401 AM [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]]} 11:36:53,401 AM [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 11:36:53,402 AM [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} 11:36:53,403 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:36:53,403 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:36:53,404 AM [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]]} 11:36:53,404 AM [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 11:36:53,405 AM [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} 11:36:53,405 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:36:53,405 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 11:36:53,406 AM [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]]} 11:36:53,406 AM [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 11:36:53,406 AM [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} 11:36:53,406 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 11:36:53,406 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#1065652223] 11:36:53,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#1958795531] 11:36:53,417 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#1982091829] 11:36:53,419 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 11:36:53,419 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,619 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:53,619 AM [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.132:17355, Removed) 11:36:53,619 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 11:36:53,620 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 11:36:53,620 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:36:53,620 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:53,620 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#1620116003] 11:36:53,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1024666474] 11:36:53,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1229724366] 11:36:53,636 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,636 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 11:36:53,838 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:53,838 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1675277038] 11:36:53,850 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-376101737] 11:36:53,850 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#1649741821] 11:36:53,853 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 11:36:53,854 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,856 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 11:36:53,857 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 11:36:53,857 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#429636011] 11:36:53,868 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#788467625] 11:36:53,869 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-2063492955] 11:36:53,872 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 11:36:53,872 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,874 AM [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]]} 11:36:53,874 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:36:53,874 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:36:53,874 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 11:36:53,875 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 11:36:53,875 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 11:36:53,875 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 11:36:53,875 AM [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} 11:36:53,875 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 11:36:53,875 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 11:36:53,876 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:36:53,876 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:36:53,876 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:36:53,876 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:36:53,876 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:36:53,876 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:36:53,876 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:36:53,876 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 11:36:53,876 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 11:36:53,876 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 11:36:53,878 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-101393712] 11:36:53,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1761810009] 11:36:53,890 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1258290301] 11:36:53,895 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 11:36:53,895 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,896 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:36:53,896 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:36:53,896 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:53,897 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:36:53,898 AM [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]]} 11:36:53,898 AM [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} 11:36:53,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-953690205] 11:36:53,910 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-1517644439] 11:36:53,910 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-1027743303] 11:36:53,912 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 11:36:53,912 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:53,913 AM [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 11:36:53,914 AM [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]]} 11:36:53,914 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:36:53,914 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 11:36:53,915 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 11:36:53,915 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-996719646] 11:36:53,926 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1040076995] 11:36:53,926 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-64089796] 11:36:53,928 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/24/2025 11:36:53.929] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5b868007 [INFO] [pekkoDeadLetter][06/24/2025 11:36:53.929] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 11:36:53,929 AM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:53,929 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 11:36:53,929 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:36:53,929 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:36:53,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 11:36:53,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 11:36:53,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:53,931 AM [test-pekko.actor.default-dispatcher-15] [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 11:36:53,936 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:53,936 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 11:36:53,936 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@3de59a3c 11:36:53,936 AM [test-pekko.actor.default-dispatcher-15] [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]]} 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [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} 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 11:36:53,937 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [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] 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 11:36:53,938 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 11:36:53,938 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d934746] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.tmp [WARN] [06/24/2025 11:36:53.938] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/24/2025 11:36:53.938] [test-pekko.actor.default-dispatcher-5] [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'. 11:36:53,938 AM [test-pekko.actor.default-dispatcher-5] [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'. 11:36:53,941 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d934746] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1 11:36:53,941 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d934746] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1 11:36:53,941 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d934746] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:36:53,942 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d934746] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-24T11:36:53.938443871Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1, size=573, entryCompress=NONE, stateCompress=NONE} 11:36:53,942 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-24T11:36:53.938443871Z 11:36:53,942 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 11:36:53,942 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 11:36:53,942 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 11:36:54,89 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1 11:36:54,89 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:36:54,89 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-24T11:36:53.938443871Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 11:36:54,91 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 11:36:54,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:36:54,102 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/24/2025 11:36:54.105] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@18a61137 [INFO] [pekkoDeadLetter][06/24/2025 11:36:54.105] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 11:36:54,105 AM [test-pekko.actor.default-dispatcher-16] [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'. 11:36:54,105 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 11:36:54,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:36:54,105 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:36:54,107 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:54,107 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1 11:36:54,107 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:36:54,108 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-24T11:36:53.938443871Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15884349357478020720/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685A8DD5-37EF845F.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 11:36:54,108 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:36:54,108 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-24T11:36:53.938443871Z 11:36:54,108 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 167.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 507.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:36:54,109 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@41c36d48 11:36:54,109 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-1457798002] 11:36:54,120 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#584718098] 11:36:54,120 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1717152160] 11:36:54,120 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 11:36:54,120 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:36:54,120 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:36:54,125 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 11:36:54,125 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:54,426 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:36:54,556 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:54,556 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 11:36:54,806 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 11:36:55,6 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 11:36:55,7 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-2084653888] 11:36:55,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-1394477853] 11:36:55,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#2025560425] 11:36:55,19 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,20 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:55,20 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 11:36:55,20 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 11:36:55,20 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:36:55,20 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:55,20 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#1528696726] 11:36:55,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-1278214740] 11:36:55,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#654899324] 11:36:55,33 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,35 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 11:36:55,35 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:36:55,35 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-2027867491] 11:36:55,46 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-2046143832] 11:36:55,46 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-652154917] 11:36:55,48 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,49 AM [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]]} 11:36:55,49 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:36:55,49 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:36:55,49 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:36:55,49 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:36:55,49 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 11:36:55,49 AM [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} 11:36:55,49 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 11:36:55,49 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 11:36:55,50 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:36:55,50 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:36:55,50 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 11:36:55,50 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-1796265245] 11:36:55,60 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#288162543] 11:36:55,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-2036421585] 11:36:55,63 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,65 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 11:36:55,65 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 11:36:55,66 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1794460646] 11:36:55,76 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#784853717] 11:36:55,76 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-962069452] 11:36:55,78 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,79 AM [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 11:36:55,80 AM [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 11:36:55,80 AM [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} 11:36:55,80 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 11:36:55,81 AM [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 11:36:55,82 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:36:55,82 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 11:36:55,82 AM [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. 11:36:55,82 AM [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 11:36:55,84 AM [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 11:36:55,84 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 11:36:55,85 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 11:36:55,85 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-1739795375] 11:36:55,96 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#2097381149] 11:36:55,96 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#241289206] 11:36:55,98 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,98 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:36:55,99 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:36:55,99 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,99 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 11:36:55,99 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 11:36:55,99 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 11:36:55,100 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 11:36:55,100 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 11:36:55,100 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#617623244] 11:36:55,110 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-252805720] 11:36:55,110 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#714008788] 11:36:55,112 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,113 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 11:36:55,114 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-231471012] 11:36:55,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-441770124] 11:36:55,124 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1138574768] 11:36:55,127 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:36:55,128 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 11:36:55,128 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 11:36:55,129 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#879238898] 11:36:55,139 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1528398947] 11:36:55,140 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1732300474] [INFO] [06/24/2025 11:36:55.140] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:36:55,141 AM [test-pekko.actor.default-dispatcher-4] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/24/2025 11:36:55.142] [test-pekko.actor.default-dispatcher-4] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.132:17355) [INFO] [06/24/2025 11:36:55.142] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - Exiting completed 11:36:55,142 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - Exiting completed 11:36:55,142 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - Shutting down... [INFO] [06/24/2025 11:36:55.142] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - Shutting down... [INFO] [pekkoDeadLetter][06/24/2025 11:36:55.142] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#955888732] 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'. 11:36:55,142 AM [test-pekko.actor.default-dispatcher-4] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#955888732] 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/24/2025 11:36:55.142] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.132:17355] - Successfully shut down 11:36:55,143 AM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.132:17355] - Successfully shut down [INFO] [06/24/2025 11:36:55.145] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.132:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/24/2025 11:36:55.145] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.132:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:36:55,145 AM [test-pekko.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:36:55,145 AM [test-pekko.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/24/2025 11:36:55.147] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.132:17355/system/remoting-terminator] Remoting shut down. 11:36:55,147 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/24/2025 11:36:55.147] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger