[DEBUG] [07/02/2025 14:37:26.604] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:37:26,604 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 14:37:26.604] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 14:37:26.604] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/02/2025 14:37:26.619] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.90:17355] with UID [-1513602399563372045] 02:37:26,619 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.90:17355] with UID [-1513602399563372045] [INFO] [07/02/2025 14:37:26.619] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - Starting up, Pekko version [1.0.3] ... 02:37:26,619 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/02/2025 14:37:26.621] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:37:26,621 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 14:37:26.621] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - Started up successfully 02:37:26,621 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - Started up successfully [INFO] [07/02/2025 14:37:26.622] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/02/2025 14:37:26.622] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:37:26,622 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:37:26,622 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:37:26,635 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:37:26,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,725 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:37:26,726 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:37:26,726 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:37:26,727 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:37:26,728 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:37:26,728 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:37:26,728 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:37:26,728 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:37:26,731 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:37:26,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-784091650] 02:37:26,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1286123074] 02:37:26,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#420785101] 02:37:26,736 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:37:26,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,738 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:37:26,738 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 02:37:26,739 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,739 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:37:26,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-726028508] 02:37:26,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-148737777] 02:37:26,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-1900743691] 02:37:26,742 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:37:26,742 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,743 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:37:26,743 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:37:26,743 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:37:26,743 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:37:26,744 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:37:26,744 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:37:26,744 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:37:26,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:37:26,745 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:26,746 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:26,746 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:37:26,747 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,747 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:37:26,747 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1382386557] 02:37:26,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-1124748455] 02:37:26,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-321453246] 02:37:26,750 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,751 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:37:26,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1466213181] 02:37:26,752 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1244934535] 02:37:26,752 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-257648130] 02:37:26,754 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:37:26,754 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,755 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:26,755 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:26,755 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:26,755 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:37:26,756 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:37:26,756 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:37:26,756 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:37:26,756 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,756 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:26,756 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:37:26,757 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:37:26,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-410529337] 02:37:26,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#383385074] 02:37:26,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1919556088] 02:37:26,760 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:37:26,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,761 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 02:37:26,761 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:26,761 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:37:26,761 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:37:26,761 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:37:26,761 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:37:26,762 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,762 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:37:26,762 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:37:26,762 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:37:26,762 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:37:26,762 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:37:26,762 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,763 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:37:26,763 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:37:26,763 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:37:26,763 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:37:26,764 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1656041593] 02:37:26,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#953674344] 02:37:26,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#1974162067] 02:37:26,777 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:37:26,777 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,778 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:37:26,778 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:37:26,779 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,779 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:37:26,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#321501349] 02:37:26,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#1318267872] 02:37:26,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-357004204] 02:37:26,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#103031281] 02:37:26,806 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#996379144] 02:37:26,806 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#27951017] 02:37:26,808 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:37:26,808 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,808 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:37:26,809 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,810 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:26,810 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:37:26,810 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:37:26,810 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:37:26,811 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:37:26,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1133239198] 02:37:26,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-14378745] 02:37:26,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#128778374] 02:37:26,825 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/02/2025 14:37:26.828] [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@492f8d77 [INFO] [pekkoDeadLetter][07/02/2025 14:37:26.828] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:26,828 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:26,831 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:37:26,831 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:37:26,831 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:37:26,833 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:37:26,833 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:37:26,833 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:26,833 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:37:26,837 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:26,837 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:37:26,837 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1b0c2a52 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:37:26,838 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:37:26,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:37:26,841 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 02:37:26,841 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d637917] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654426-322C02F0.tmp [WARN] [07/02/2025 14:37:26.842] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 14:37:26.842] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:26,842 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:26,846 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d637917] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654426-322C02F0.v1 02:37:26,846 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d637917] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:37:26,846 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d637917] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654426-322C02F0.v1 02:37:26,846 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d637917] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T14:37:26.841745136Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654426-322C02F0.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:37:26,846 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d637917] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:37:26,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:37:26,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-02T14:37:26.841745136Z 02:37:26,846 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 02:37:26,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:37:26,847 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 02:37:26,941 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:37:26,941 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654426-322C02F0.v1 02:37:26,941 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T14:37:26.841745136Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6937893918366548495/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068654426-322C02F0.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:37:26,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1356033438] 02:37:26,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1144722132] 02:37:26,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#391350730] 02:37:26,955 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:37:26,955 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:37:26,955 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:37:26,959 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1026300406] 02:37:26,971 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1744786394] 02:37:26,972 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#2012540660] 02:37:26,976 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:37:26,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,979 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 02:37:26,980 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:37:26,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1841138607] 02:37:26,991 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1456301932] 02:37:26,991 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1199536632] 02:37:26,995 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:37:26,995 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:26,996 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:26,996 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:26,996 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:26,996 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:37:26,996 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:37:26,996 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:37:26,997 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:37:26,997 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:26,997 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:26,997 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:37:26,997 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:37:26,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-1934106421] 02:37:27,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-841986946] 02:37:27,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#651962316] 02:37:27,12 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:37:27,12 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,13 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:27,13 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,14 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:37:27,14 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,14 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:27,14 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:37:27,15 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,15 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:37:27,16 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,16 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:37:27,16 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-1838580595] 02:37:27,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-182659859] 02:37:27,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1869063235] 02:37:27,31 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#873306860] 02:37:27,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1735290300] 02:37:27,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#477650719] 02:37:27,45 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:37:27,45 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,46 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:27,47 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,47 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:37:27,48 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,49 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:27,49 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:37:27,49 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,50 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:37:27,50 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,50 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:37:27,51 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,51 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:37:27,52 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,52 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:37:27,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1725812281] 02:37:27,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#219065480] 02:37:27,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#10620159] 02:37:27,67 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:37:27,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,68 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:37:27,68 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:27,68 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:37:27,68 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:37:27,68 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:37:27,69 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:37:27,69 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,69 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:37:27,69 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:37:27,69 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:37:27,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#73342907] 02:37:27,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#369102952] 02:37:27,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1773063546] 02:37:27,83 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:37:27,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,85 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:37:27,87 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 02:37:27,87 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 02:37:27,89 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:37:27,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#300663378] 02:37:27,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1000832192] 02:37:27,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-987449299] 02:37:27,105 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:37:27,105 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,106 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,107 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:27,107 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:37:27,108 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:37:27,108 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1270678235] 02:37:27,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1189939672] 02:37:27,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1475188211] 02:37:27,122 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:37:27,122 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,123 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:27,123 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,123 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:37:27,124 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,124 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:27,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#1460616776] 02:37:27,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#1938399497] 02:37:27,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#1986167235] 02:37:27,137 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/02/2025 14:37:27.138] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@7854c0c3 [INFO] [pekkoDeadLetter][07/02/2025 14:37:27.138] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,139 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,139 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:37:27,139 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:37:27,139 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:37:27,141 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:37:27,141 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:37:27,141 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:37:27,141 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:37:27,145 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:37:27,145 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:37:27,145 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@40a1a44b 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:37:27,145 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:37:27,146 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:37:27,147 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 02:37:27,147 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d893382] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654427-08CBAC39.tmp [WARN] [07/02/2025 14:37:27.147] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 14:37:27.147] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,147 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,150 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d893382] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654427-08CBAC39.v1 02:37:27,150 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d893382] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654427-08CBAC39.v1 02:37:27,150 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d893382] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:37:27,150 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d893382] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T14:37:27.147565625Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654427-08CBAC39.v1, size=701, entryCompress=NONE, stateCompress=NONE} 02:37:27,150 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d893382] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:37:27,150 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:37:27,150 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-02T14:37:27.147565625Z 02:37:27,150 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 02:37:27,151 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:37:27,151 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 02:37:27,247 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654427-08CBAC39.v1 02:37:27,248 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:37:27,248 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T14:37:27.147565625Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14690713770551915882/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068654427-08CBAC39.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 02:37:27,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-613235253] 02:37:27,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-71092024] 02:37:27,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#445224836] 02:37:27,261 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:37:27,261 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:37:27,261 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:37:27,264 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:37:27,265 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,266 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:27,266 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 02:37:27,267 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 02:37:27,267 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,267 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:37:27,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1389213422] 02:37:27,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#2082359344] 02:37:27,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-2043560669] 02:37:27,281 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:37:27,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,282 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:37:27,283 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:37:27,283 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:37:27,283 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:37:27,283 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:37:27,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-563890090] 02:37:27,294 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#1357342302] 02:37:27,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#2131234425] 02:37:27,297 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:37:27,297 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,298 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:37:27,299 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:37:27,299 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:37:27,299 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:37:27,300 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,300 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:37:27,300 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:37:27,300 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:37:27,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:37:27,300 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:37:27,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:37:27,300 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:37:27,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:37:27,300 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:37:27,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:37:27,301 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1106594832] 02:37:27,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-594894739] 02:37:27,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1053263998] 02:37:27,314 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:37:27,314 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,315 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:37:27,315 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:37:27,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1689115644] 02:37:27,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-720978129] 02:37:27,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#373665369] 02:37:27,330 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:37:27,330 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,331 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:37:27,332 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:37:27,332 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:37:27,332 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:37:27,333 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 02:37:27,333 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:37:27,334 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,335 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:37:27,335 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:37:27,335 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:37:27,335 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:37:27,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-947442759] 02:37:27,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#1432708104] 02:37:27,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1516474328] 02:37:27,350 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:37:27,350 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,351 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:37:27,352 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,352 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:37:27,353 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,353 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:37:27,353 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:37:27,354 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,354 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:37:27,355 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,355 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:37:27,355 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:37:27,356 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:37:27,356 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:37:27,356 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,357 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:37:27,357 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-430313002] 02:37:27,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#102968933] 02:37:27,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#1805667827] 02:37:27,371 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:37:27,371 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,571 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:37:27,571 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.90:17355, Removed) 02:37:27,571 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:37:27,572 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:37:27,572 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:37:27,572 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:37:27,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1673959712] 02:37:27,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-1184686005] 02:37:27,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#307115629] 02:37:27,589 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,589 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:37:27,791 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:37:27,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1650042793] 02:37:27,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#1134356450] 02:37:27,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#1217222785] 02:37:27,807 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:37:27,807 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,809 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:37:27,810 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:37:27,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#460101089] 02:37:27,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#2106266555] 02:37:27,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1750955052] 02:37:27,814 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:37:27,814 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,814 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 02:37:27,814 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,815 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:37:27,815 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:37:27,815 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:37:27,815 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:37:27,815 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:37:27,815 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:37:27,815 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:37:27,815 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:37:27,815 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:37:27,815 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:37:27,816 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:37:27,816 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:37:27,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#1146410820] 02:37:27,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-2063191264] 02:37:27,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#1883571339] 02:37:27,819 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:37:27,819 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,819 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:37:27,819 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:37:27,819 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:37:27,820 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:37:27,820 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 02:37:27,821 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#287488618] 02:37:27,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-1688615733] 02:37:27,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1942713002] 02:37:27,823 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:37:27,823 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:27,823 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:37:27,823 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:37:27,824 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:37:27,824 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:37:27,824 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:37:27,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-809916790] 02:37:27,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1539569039] 02:37:27,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-462836882] 02:37:27,826 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/02/2025 14:37:27.827] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@62fffc7d 02:37:27,827 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:37:27,827 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:37:27,827 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][07/02/2025 14:37:27.827] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,827 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,829 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:37:27,829 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:37:27,829 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:27,829 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:37:27,832 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:27,832 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:37:27,832 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@463bbabc 02:37:27,832 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:37:27,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 02:37:27,833 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:37:27,833 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:37:27,833 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:37:27,833 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:37:27,833 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 02:37:27,834 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:37:27,834 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:37:27,834 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:37:27,834 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 02:37:27,834 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d714322] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.tmp [WARN] [07/02/2025 14:37:27.834] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 14:37:27.834] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,834 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,837 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d714322] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1 02:37:27,837 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d714322] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:37:27,837 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d714322] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1 02:37:27,838 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d714322] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T14:37:27.834045079Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:37:27,838 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d714322] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:37:27,838 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:37:27,838 PM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-02T14:37:27.834045079Z 02:37:27,838 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 02:37:27,838 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 02:37:27,838 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:37:27,984 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:37:27,985 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1 02:37:27,985 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T14:37:27.834045079Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:37:27,987 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:37:27,998 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:37:27,998 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/02/2025 14:37:27.999] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@225a1f56 [INFO] [pekkoDeadLetter][07/02/2025 14:37:27.999] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:27,999 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:28,0 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:37:28,0 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:37:28,0 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:37:28,2 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:28,2 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:37:28,2 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1 02:37:28,2 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T14:37:27.834045079Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8376522600891271068/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068654427-31B68497.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:37:28,2 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-02T14:37:27.834045079Z 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 152.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 482.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:37:28,3 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:37:28,4 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:37:28,4 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@77874cae 02:37:28,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1293207573] 02:37:28,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-1703665432] 02:37:28,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-145592053] 02:37:28,100 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:37:28,101 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:37:28,101 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:37:28,104 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:37:28,104 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:28,405 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:37:28,535 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:37:28,535 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:37:28,786 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:37:28,986 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:37:28,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-900803339] 02:37:28,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-827941097] 02:37:28,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1341482520] 02:37:29,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,2 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:37:29,2 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:37:29,2 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:37:29,2 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:37:29,2 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:37:29,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-759299628] 02:37:29,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#1756140490] 02:37:29,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#727968362] 02:37:29,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,19 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:37:29,19 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:37:29,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#452152101] 02:37:29,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#794238570] 02:37:29,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-2083162126] 02:37:29,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:37:29,35 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:29,36 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:37:29,36 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:37:29,36 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:37:29,36 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:37:29,36 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:37:29,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#172814621] 02:37:29,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-982842731] 02:37:29,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1239236502] 02:37:29,49 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,51 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:37:29,53 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:37:29,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#513645021] 02:37:29,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-726444349] 02:37:29,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#499504609] 02:37:29,66 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,66 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:37:29,67 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 02:37:29,67 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:37:29,67 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:37:29,68 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 02:37:29,69 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:37:29,69 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:37:29,69 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 02:37:29,69 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 02:37:29,69 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 02:37:29,70 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:37:29,70 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:37:29,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1060601520] 02:37:29,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#1308163925] 02:37:29,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#1474140299] 02:37:29,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:37:29,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:37:29,85 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,85 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:37:29,85 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:37:29,85 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:37:29,85 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:37:29,85 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:37:29,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1438560559] 02:37:29,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-1403494718] 02:37:29,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-792020456] 02:37:29,98 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,100 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:37:29,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-483974361] 02:37:29,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#1641074330] 02:37:29,111 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#986249501] 02:37:29,113 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:37:29,114 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:37:29,114 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:37:29,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-712564500] 02:37:29,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1098160230] 02:37:29,126 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1851098424] [INFO] [07/02/2025 14:37:29.127] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:37:29,127 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 14:37:29.128] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.90:17355) [INFO] [07/02/2025 14:37:29.128] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - Exiting completed [INFO] [pekkoDeadLetter][07/02/2025 14:37:29.128] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1062847319] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [07/02/2025 14:37:29.128] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - Shutting down... 02:37:29,128 PM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - Exiting completed 02:37:29,128 PM [test-pekko.actor.default-dispatcher-16] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1062847319] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:37:29,128 PM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - Shutting down... [INFO] [07/02/2025 14:37:29.128] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.90:17355] - Successfully shut down 02:37:29,128 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.90:17355] - Successfully shut down [INFO] [07/02/2025 14:37:29.130] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.90:17355/system/remoting-terminator] Shutting down remote daemon. 02:37:29,130 PM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/02/2025 14:37:29.130] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.90:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:37:29,130 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 14:37:29.132] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.90:17355/system/remoting-terminator] Remoting shut down. 02:37:29,132 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/02/2025 14:37:29.132] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger