[DEBUG] [06/27/2025 02:13:22.472] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:13:22,472 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 02:13:22.472] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 02:13:22.473] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/27/2025 02:13:22.480] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.175:17355] with UID [-8946213002419211389] [INFO] [06/27/2025 02:13:22.480] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - Starting up, Pekko version [1.0.3] ... 02:13:22,480 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.175:17355] with UID [-8946213002419211389] 02:13:22,480 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 02:13:22.482] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 02:13:22.482] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - Started up successfully 02:13:22,482 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:13:22,482 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - Started up successfully [INFO] [06/27/2025 02:13:22.483] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/27/2025 02:13:22.483] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:13:22,483 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:13:22,483 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:13:22,494 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:13:22,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,575 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:13:22,575 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:13:22,575 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:13:22,576 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:13:22,576 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:13:22,577 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:13:22,577 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:13:22,577 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:13:22,579 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:13:22,579 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#302724068] 02:13:22,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-542488162] 02:13:22,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1175695693] 02:13:22,592 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:13:22,592 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,593 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:13:22,593 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 02:13:22,594 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,594 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:13:22,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-848403463] 02:13:22,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1372184900] 02:13:22,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#555400041] 02:13:22,606 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:13:22,606 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,606 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:13:22,606 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:13:22,606 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:13:22,606 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:13:22,607 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:13:22,607 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:13:22,607 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:13:22,607 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:13:22,608 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,608 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,608 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:13:22,608 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,608 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:13:22,609 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-383839806] 02:13:22,619 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-1822777440] 02:13:22,619 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-48895140] 02:13:22,621 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,621 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:13:22,622 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-2106313264] 02:13:22,633 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#195793776] 02:13:22,633 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#33782315] 02:13:22,637 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:13:22,637 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,638 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,638 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,639 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:22,639 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:13:22,639 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:13:22,639 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:13:22,640 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:13:22,640 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,640 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,640 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:13:22,642 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:13:22,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1592479656] 02:13:22,653 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1422069594] 02:13:22,654 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1767188896] 02:13:22,656 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:13:22,656 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:13:22,657 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,658 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:13:22,658 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:13:22,658 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:13:22,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:13:22,658 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:13:22,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:13:22,659 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,660 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:13:22,660 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:13:22,661 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:13:22,661 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:13:22,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1745408305] 02:13:22,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-1352391495] 02:13:22,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1264239912] 02:13:22,674 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:13:22,674 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,675 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:13:22,676 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:13:22,677 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,677 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:13:22,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1692269533] 02:13:22,688 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-700150124] 02:13:22,688 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-2061077968] 02:13:22,691 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#2111679875] 02:13:22,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#279382301] 02:13:22,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1234775740] 02:13:22,697 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:13:22,697 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,698 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:13:22,698 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,698 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,698 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:22,698 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:13:22,698 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:13:22,698 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:13:22,698 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:13:22,699 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,699 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,699 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:13:22,699 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:13:22,699 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:13:22,699 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:13:22,699 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-749985534] 02:13:22,700 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#612051737] 02:13:22,700 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1659137498] 02:13:22,701 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/27/2025 02:13:22.703] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1091790b [INFO] [pekkoDeadLetter][06/27/2025 02:13:22.703] [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:13:22,703 AM [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:13:22,704 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:13:22,704 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:13:22,704 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:13:22,706 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:13:22,706 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:13:22,706 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:22,706 AM [test-pekko.actor.default-dispatcher-12] [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:13:22,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:22,711 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:13:22,711 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@44dadc7a 02:13:22,712 AM [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:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:13:22,712 AM [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:13:22,712 AM [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:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:13:22,712 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 [WARN] [06/27/2025 02:13:22.713] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 02:13:22.713] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:13:22,713 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:13:22,713 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160084] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DFE42-2A84F359.tmp 02:13:22,719 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160084] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DFE42-2A84F359.v1 02:13:22,719 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160084] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DFE42-2A84F359.v1 02:13:22,719 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160084] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:13:22,719 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d160084] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T02:13:22.713356121Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DFE42-2A84F359.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:13:22,719 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T02:13:22.713356121Z 02:13:22,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 02:13:22,719 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:13:22,720 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 02:13:22,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DFE42-2A84F359.v1 02:13:22,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:13:22,814 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T02:13:22.713356121Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8758526819490581983/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DFE42-2A84F359.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:13:22,816 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1532434495] 02:13:22,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-949270271] 02:13:22,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1017282503] 02:13:22,827 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:13:22,828 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:13:22,828 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:13:22,830 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,832 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#951487158] 02:13:22,843 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1114249095] 02:13:22,843 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1356548668] 02:13:22,845 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:13:22,845 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,847 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 02:13:22,848 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:13:22,848 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1729145609] 02:13:22,859 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1235310344] 02:13:22,859 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1515941093] 02:13:22,863 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:13:22,863 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,864 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,864 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,864 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:22,864 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:13:22,864 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:13:22,864 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:13:22,865 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:13:22,865 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,865 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,865 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:13:22,865 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:13:22,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-1025023520] 02:13:22,866 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#2004710976] 02:13:22,866 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1310469689] 02:13:22,867 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:13:22,867 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,868 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,868 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,868 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:13:22,868 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,868 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,869 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:13:22,869 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,869 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:13:22,869 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,869 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:13:22,870 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#2066770347] 02:13:22,870 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-294832392] 02:13:22,870 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#501472581] 02:13:22,872 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1451354671] 02:13:22,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-2135190594] 02:13:22,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-486075103] 02:13:22,873 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:13:22,874 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,874 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,874 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,874 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:13:22,874 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,875 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,875 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:13:22,875 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,875 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:13:22,875 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,875 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:13:22,877 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,877 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:13:22,877 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,877 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:13:22,878 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-776981218] 02:13:22,878 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1472923595] 02:13:22,878 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#1394189560] 02:13:22,880 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:13:22,880 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:13:22,880 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,881 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:13:22,881 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:13:22,881 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:13:22,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1912411270] 02:13:22,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-342665979] 02:13:22,882 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1053790244] 02:13:22,883 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:13:22,883 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,884 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:13:22,884 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 02:13:22,884 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 02:13:22,886 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:13:22,886 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#378802121] 02:13:22,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1173347580] 02:13:22,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1842533744] 02:13:22,889 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:13:22,889 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,889 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,890 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,890 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:13:22,890 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:13:22,890 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1463798135] 02:13:22,891 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-73810289] 02:13:22,891 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-1435056688] 02:13:22,893 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:13:22,893 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:22,893 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:22,894 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:22,894 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:13:22,894 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:22,894 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:22,895 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#1006171584] 02:13:22,895 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-971382621] 02:13:22,895 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#709353980] 02:13:22,896 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/27/2025 02:13:22.897] [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@17991737 [INFO] [pekkoDeadLetter][06/27/2025 02:13:22.897] [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:13:22,897 AM [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:13:22,898 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:13:22,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:13:22,898 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:13:22,899 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:13:22,899 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:13:22,899 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:13:22,899 AM [test-pekko.actor.default-dispatcher-6] [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:13:22,903 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:13:22,903 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:13:22,903 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6952443e 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [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:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [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:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:13:22,904 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [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:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:13:22,905 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 02:13:22,905 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d512094] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DFE42-35FB4F68.tmp [WARN] [06/27/2025 02:13:22.905] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 02:13:22.905] [test-pekko.actor.default-dispatcher-12] [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:13:22,906 AM [test-pekko.actor.default-dispatcher-12] [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:13:22,907 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d512094] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DFE42-35FB4F68.v1 02:13:22,907 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d512094] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DFE42-35FB4F68.v1 02:13:22,907 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d512094] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:13:22,907 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d512094] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T02:13:22.905662312Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DFE42-35FB4F68.v1, size=701, entryCompress=NONE, stateCompress=NONE} 02:13:22,907 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T02:13:22.905662312Z 02:13:22,907 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 02:13:22,908 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:13:22,908 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 02:13:23,55 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DFE42-35FB4F68.v1 02:13:23,56 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:13:23,56 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T02:13:22.905662312Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7175036946011741388/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DFE42-35FB4F68.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 02:13:23,57 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1300088212] 02:13:23,59 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-27447584] 02:13:23,59 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#372699606] 02:13:23,59 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:13:23,64 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:13:23,64 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:13:23,66 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:13:23,66 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,66 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:23,67 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 02:13:23,67 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 02:13:23,67 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,67 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:13:23,67 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-160027472] 02:13:23,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#299981736] 02:13:23,68 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#165146345] 02:13:23,69 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:13:23,70 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,70 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:13:23,70 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:13:23,70 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:13:23,70 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:13:23,71 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:13:23,71 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-476207431] 02:13:23,71 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-705255831] 02:13:23,71 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-453107121] 02:13:23,73 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:13:23,73 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,73 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:13:23,73 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:13:23,73 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:13:23,74 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:23,74 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,74 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:13:23,74 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:13:23,74 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:13:23,74 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:13:23,74 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:13:23,74 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:13:23,74 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:13:23,74 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:13:23,74 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:13:23,74 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:13:23,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1487788710] 02:13:23,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#652216425] 02:13:23,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1132798505] 02:13:23,76 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:13:23,77 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,77 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:13:23,77 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:13:23,77 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1047036957] 02:13:23,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#1009509292] 02:13:23,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-1905094448] 02:13:23,79 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:13:23,79 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,79 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:13:23,80 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:13:23,80 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:13:23,80 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:13:23,80 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 02:13:23,80 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 02:13:23,80 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,81 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:13:23,81 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:13:23,81 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:13:23,81 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:13:23,81 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#742066126] 02:13:23,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#815843571] 02:13:23,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-875086029] 02:13:23,83 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:13:23,83 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,84 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:13:23,84 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:23,84 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:13:23,85 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,85 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:13:23,85 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:13:23,85 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:23,85 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:13:23,86 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,86 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:13:23,86 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:13:23,86 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:13:23,86 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:13:23,86 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,86 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:13:23,87 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#441090439] 02:13:23,87 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#339746071] 02:13:23,87 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#871359147] 02:13:23,88 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:13:23,88 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,289 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:23,289 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.175:17355, Removed) 02:13:23,289 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:13:23,289 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:13:23,289 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:13:23,289 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:13:23,289 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#880299779] 02:13:23,293 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#863697741] 02:13:23,293 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#755835154] 02:13:23,296 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,296 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:13:23,547 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:23,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1880886548] 02:13:23,558 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1305192742] 02:13:23,558 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1861596072] 02:13:23,561 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:13:23,561 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,563 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:13:23,563 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:13:23,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-611254285] 02:13:23,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1765365425] 02:13:23,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#555016707] 02:13:23,577 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:13:23,577 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:13:23,579 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,580 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:13:23,580 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:13:23,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:13:23,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:13:23,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:13:23,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:13:23,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:13:23,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:13:23,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:13:23,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:13:23,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:13:23,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:13:23,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#1089713606] 02:13:23,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#513107659] 02:13:23,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1923429276] 02:13:23,596 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:13:23,596 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,597 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:13:23,597 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:13:23,597 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:13:23,597 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:13:23,598 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 02:13:23,599 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,599 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#1561141669] 02:13:23,610 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#962320346] 02:13:23,610 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-2063171551] 02:13:23,612 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:13:23,612 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:23,613 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:13:23,613 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:13:23,614 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:13:23,614 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:13:23,614 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:13:23,615 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1495068343] 02:13:23,625 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-492261273] 02:13:23,626 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#277206533] 02:13:23,628 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 02:13:23,629 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [WARN] [06/27/2025 02:13:23.629] [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@69780c06 [INFO] [pekkoDeadLetter][06/27/2025 02:13:23.629] [test-pekko.actor.default-dispatcher-7] [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:13:23,629 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:13:23,629 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:13:23,629 AM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:13:23,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:13:23,631 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:13:23,631 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:23,631 AM [test-pekko.actor.default-dispatcher-11] [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:13:23,635 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:23,635 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:13:23,635 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3c39f289 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:13:23,636 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:13:23,637 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [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:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:13:23,638 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 02:13:23,639 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d580191] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.tmp [WARN] [06/27/2025 02:13:23.639] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 02:13:23.639] [test-pekko.actor.default-dispatcher-15] [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:13:23,639 AM [test-pekko.actor.default-dispatcher-7] [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:13:23,640 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d580191] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1 02:13:23,641 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d580191] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1 02:13:23,641 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d580191] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:13:23,641 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d580191] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T02:13:23.638813083Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:13:23,644 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T02:13:23.638813083Z 02:13:23,644 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 02:13:23,644 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 02:13:23,644 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:13:23,788 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1 02:13:23,788 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:13:23,788 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T02:13:23.638813083Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:13:23,790 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:13:23,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:13:23,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:13:23,792 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:13:23,792 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:13:23,792 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [06/27/2025 02:13:23.792] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@55700874 [INFO] [pekkoDeadLetter][06/27/2025 02:13:23.792] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:13:23,793 AM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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:13:23,794 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:23,794 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1 02:13:23,794 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:13:23,794 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T02:13:23.638813083Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16451741743062064003/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DFE43-2613839B.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:13:23,794 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T02:13:23.638813083Z 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 111.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 325.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:13:23,795 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4f38b40 02:13:23,796 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-1445032350] 02:13:23,806 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#1546017921] 02:13:23,806 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-927674938] 02:13:23,806 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:13:23,806 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:13:23,806 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:13:23,808 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:13:23,808 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,108 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:13:24,239 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:24,239 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:13:24,489 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:13:24,689 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:13:24,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1092591346] 02:13:24,700 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1199590270] 02:13:24,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#268814169] 02:13:24,703 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,704 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:13:24,704 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:13:24,704 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:13:24,704 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:13:24,705 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:13:24,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-1995446989] 02:13:24,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-773220797] 02:13:24,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1057760] 02:13:24,718 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,719 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:13:24,720 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:13:24,720 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1357971561] 02:13:24,731 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#1806587136] 02:13:24,731 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-1114992074] 02:13:24,734 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,735 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:24,736 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:13:24,736 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:13:24,736 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:13:24,736 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:13:24,736 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:13:24,737 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-2089751392] 02:13:24,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1036848071] 02:13:24,748 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1318686873] 02:13:24,750 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,751 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:13:24,752 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:13:24,752 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#230990485] 02:13:24,762 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-84511994] 02:13:24,762 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#420413552] 02:13:24,764 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,765 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:13:24,765 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 02:13:24,766 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:13:24,766 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:13:24,766 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 02:13:24,767 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:13:24,767 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:13:24,767 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 02:13:24,767 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 02:13:24,768 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 02:13:24,768 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:13:24,769 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:13:24,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1352899324] 02:13:24,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-63056487] 02:13:24,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-140657882] 02:13:24,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:13:24,786 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:13:24,786 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,786 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:13:24,786 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:13:24,786 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:13:24,787 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:13:24,787 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:13:24,787 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-248078945] 02:13:24,798 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-1073644124] 02:13:24,798 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1387690730] 02:13:24,801 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,802 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:13:24,803 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#2142854708] 02:13:24,813 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-468529859] 02:13:24,813 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1977466713] 02:13:24,815 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:13:24,816 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:13:24,817 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:13:24,817 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#2143709589] 02:13:24,828 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-1688380662] 02:13:24,828 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-171422592] [INFO] [06/27/2025 02:13:24.828] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:13:24,829 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 02:13:24.829] [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.175:17355) [INFO] [pekkoDeadLetter][06/27/2025 02:13:24.829] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1786509757] 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:13:24,829 AM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1786509757] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/27/2025 02:13:24.829] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - Exiting completed [INFO] [06/27/2025 02:13:24.830] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - Shutting down... 02:13:24,830 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - Exiting completed 02:13:24,830 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - Shutting down... 02:13:24,830 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.175:17355] - Successfully shut down [INFO] [06/27/2025 02:13:24.830] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.175:17355] - Successfully shut down [INFO] [06/27/2025 02:13:24.833] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.175:17355/system/remoting-terminator] Shutting down remote daemon. 02:13:24,833 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/27/2025 02:13:24.833] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.175:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:13:24,833 AM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/27/2025 02:13:24.834] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.175:17355/system/remoting-terminator] Remoting shut down. 02:13:24,834 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/27/2025 02:13:24.835] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger