[DEBUG] [06/26/2025 12:19:37.421] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 12:19:37,421 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/26/2025 12:19:37.421] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/26/2025 12:19:37.425] [main] [EventStream(pekko://test)] Default Loggers started 12:19:37,448 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.211:17355] with UID [7307921042085966446] 12:19:37,448 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/26/2025 12:19:37.443] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.211:17355] with UID [7307921042085966446] [INFO] [06/26/2025 12:19:37.444] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/26/2025 12:19:37.449] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/26/2025 12:19:37.449] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - Started up successfully [INFO] [06/26/2025 12:19:37.449] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/26/2025 12:19:37.449] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:19:37,452 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:19:37,452 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - Started up successfully 12:19:37,452 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 12:19:37,452 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:19:37,462 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 12:19:37,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,560 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:19:37,560 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:19:37,560 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:19:37,560 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:19:37,562 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:19:37,562 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 12:19:37,562 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:19:37,562 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:19:37,564 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 12:19:37,564 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#308010957] 12:19:37,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-738403455] 12:19:37,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1811971959] 12:19:37,567 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 12:19:37,567 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,569 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 12:19:37,569 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 12:19:37,570 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,570 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:19:37,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#461619107] 12:19:37,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1148105626] 12:19:37,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1044373715] 12:19:37,572 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 12:19:37,573 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,573 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:19:37,574 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:19:37,574 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:19:37,574 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:19:37,577 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:19:37,577 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:19:37,577 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:19:37,578 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:19:37,578 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,579 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,579 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:19:37,579 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,579 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 12:19:37,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#441075497] 12:19:37,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-1492932817] 12:19:37,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1342956522] 12:19:37,582 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,583 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:19:37,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-244045935] 12:19:37,599 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1077262518] 12:19:37,599 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-1522807375] 12:19:37,601 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:19:37,601 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,602 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,602 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,602 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:37,603 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:19:37,603 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:19:37,603 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:19:37,603 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:19:37,603 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,603 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:37,603 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:19:37,604 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:19:37,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#114918155] 12:19:37,615 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-462982022] 12:19:37,615 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#864624622] 12:19:37,617 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 12:19:37,617 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,618 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:19:37,618 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:19:37,619 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:19:37,619 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:19:37,619 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:19:37,619 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:19:37,619 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 12:19:37,619 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:19:37,619 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:19:37,619 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:19:37,619 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 12:19:37,620 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:19:37,620 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:19:37,620 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,620 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 12:19:37,620 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:19:37,620 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:19:37,620 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:19:37,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#101278107] 12:19:37,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-1316693054] 12:19:37,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1157948077] 12:19:37,633 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 12:19:37,634 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,634 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 12:19:37,635 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:19:37,636 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,636 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 12:19:37,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1925301554] 12:19:37,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1083050935] 12:19:37,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1193086180] 12:19:37,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-425297255] 12:19:37,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1398371723] 12:19:37,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#822609519] 12:19:37,667 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 12:19:37,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:19:37,668 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,668 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,669 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:37,669 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 12:19:37,669 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 12:19:37,669 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 12:19:37,669 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 12:19:37,670 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-773985325] 12:19:37,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#999460620] 12:19:37,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1909965348] 12:19:37,683 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/26/2025 12:19:37.685] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2cc93b9d [INFO] [pekkoDeadLetter][06/26/2025 12:19:37.686] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:19:37,686 PM [test-pekko.actor.default-dispatcher-6] [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'. 12:19:37,688 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 12:19:37,688 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:19:37,688 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:19:37,690 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 12:19:37,690 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 12:19:37,690 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:37,690 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:19:37,701 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:37,701 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 12:19:37,701 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@37cd94e2 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 12:19:37,702 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 12:19:37,703 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:19:37,703 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:19:37,703 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 12:19:37,703 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 12:19:37,703 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 12:19:37,703 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 12:19:37,704 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d58070] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D3AD9-29F2E35D.tmp 12:19:37,708 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 12:19:37,708 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 [WARN] [06/26/2025 12:19:37.708] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/26/2025 12:19:37.708] [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'. 12:19:37,708 PM [test-pekko.actor.default-dispatcher-7] [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'. 12:19:37,710 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d58070] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D3AD9-29F2E35D.v1 12:19:37,710 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d58070] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D3AD9-29F2E35D.v1 12:19:37,710 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d58070] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:19:37,710 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d58070] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T12:19:37.703783773Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D3AD9-29F2E35D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 12:19:37,711 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-26T12:19:37.703783773Z 12:19:37,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 12:19:37,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 12:19:37,711 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 12:19:37,854 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D3AD9-29F2E35D.v1 12:19:37,854 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:19:37,854 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T12:19:37.703783773Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest87140065283642768/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D3AD9-29F2E35D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 12:19:37,857 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#493616928] 12:19:37,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#525516931] 12:19:37,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-626744520] 12:19:37,869 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 12:19:37,870 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:19:37,870 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:19:37,872 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,872 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1877842607] 12:19:37,883 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1668831359] 12:19:37,883 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#570691227] 12:19:37,886 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 12:19:37,886 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,888 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 12:19:37,888 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:19:37,889 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#834580514] 12:19:37,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1350186159] 12:19:37,900 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#543392014] 12:19:37,904 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 12:19:37,904 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,905 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,905 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,906 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:37,906 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:19:37,906 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:19:37,906 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:19:37,906 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:19:37,906 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,907 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:37,907 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:19:37,907 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:19:37,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#799515537] 12:19:37,919 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#815074798] 12:19:37,919 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#30027830] 12:19:37,923 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 12:19:37,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,925 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,926 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,926 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:19:37,927 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,927 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:37,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 12:19:37,928 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,928 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 12:19:37,929 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,929 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:19:37,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-769547290] 12:19:37,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1528027313] 12:19:37,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#1821742772] 12:19:37,944 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1994522462] 12:19:37,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#705629165] 12:19:37,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-315782853] 12:19:37,959 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 12:19:37,960 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,961 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,961 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,962 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:19:37,962 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,962 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:37,962 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:19:37,963 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,964 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:19:37,964 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,964 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:19:37,964 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,965 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:19:37,965 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,965 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:19:37,965 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1144737501] 12:19:37,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#1436910895] 12:19:37,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-571754143] 12:19:37,979 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 12:19:37,979 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,981 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,982 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:19:37,982 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:19:37,982 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 12:19:37,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#595599637] 12:19:37,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1975118403] 12:19:37,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-62928855] 12:19:37,986 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 12:19:37,986 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,989 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:19:37,991 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 12:19:37,991 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 12:19:37,992 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 12:19:37,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-840318270] 12:19:37,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-121603479] 12:19:37,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1711909036] 12:19:37,997 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 12:19:37,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:37,998 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:37,998 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:37,999 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:37,999 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:19:37,999 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:19:38,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#864813483] 12:19:38,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-43477214] 12:19:38,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-1344044664] 12:19:38,13 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:19:38,13 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,14 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:38,14 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:38,15 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:19:38,15 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,15 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:38,15 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#2041656394] 12:19:38,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#1678188668] 12:19:38,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-81917939] 12:19:38,31 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/26/2025 12:19:38.032] [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@4d15e19c [INFO] [pekkoDeadLetter][06/26/2025 12:19:38.032] [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'. 12:19:38,32 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:19:38,32 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 12:19:38,33 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:19:38,33 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:19:38,34 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 12:19:38,34 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 12:19:38,34 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:19:38,34 PM [test-pekko.actor.default-dispatcher-7] [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 12:19:38,39 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:19:38,39 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 12:19:38,39 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@47bb8572 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 12:19:38,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [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] 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 12:19:38,42 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 12:19:38,42 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d725366] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D3ADA-028BB44E.tmp [WARN] [06/26/2025 12:19:38.043] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/26/2025 12:19:38.043] [test-pekko.actor.default-dispatcher-7] [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'. 12:19:38,43 PM [test-pekko.actor.default-dispatcher-7] [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'. 12:19:38,45 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d725366] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D3ADA-028BB44E.v1 12:19:38,45 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d725366] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:19:38,45 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d725366] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D3ADA-028BB44E.v1 12:19:38,46 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d725366] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T12:19:38.042710094Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D3ADA-028BB44E.v1, size=701, entryCompress=NONE, stateCompress=NONE} 12:19:38,46 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-26T12:19:38.042710094Z 12:19:38,46 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 12:19:38,46 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 12:19:38,46 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 12:19:38,142 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:19:38,142 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D3ADA-028BB44E.v1 12:19:38,143 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T12:19:38.042710094Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2511336897436589060/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D3ADA-028BB44E.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 12:19:38,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1601861102] 12:19:38,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#657150562] 12:19:38,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-834980543] 12:19:38,155 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 12:19:38,156 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:19:38,156 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:19:38,160 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 12:19:38,161 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,162 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:38,163 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 12:19:38,163 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 12:19:38,163 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,164 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 12:19:38,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-121287435] 12:19:38,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#1517506400] 12:19:38,175 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#1404373843] 12:19:38,179 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 12:19:38,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,180 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 12:19:38,181 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 12:19:38,181 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 12:19:38,181 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 12:19:38,182 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 12:19:38,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#1037122918] 12:19:38,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#195014759] 12:19:38,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#506911299] 12:19:38,189 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 12:19:38,189 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,190 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:19:38,191 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:38,191 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,191 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:19:38,191 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 12:19:38,191 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:19:38,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:19:38,191 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:19:38,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:19:38,192 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:19:38,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:19:38,192 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:19:38,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:19:38,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-477559038] 12:19:38,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#271919536] 12:19:38,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1015396874] 12:19:38,195 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 12:19:38,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,195 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 12:19:38,195 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 12:19:38,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-2064338817] 12:19:38,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-1729289390] 12:19:38,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-2039183954] 12:19:38,198 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 12:19:38,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,199 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:19:38,199 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:19:38,199 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:19:38,199 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:19:38,199 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,200 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 12:19:38,200 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:19:38,200 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:19:38,200 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:19:38,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#1442708320] 12:19:38,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-85801646] 12:19:38,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#438651686] 12:19:38,203 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 12:19:38,203 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,203 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 12:19:38,204 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:38,204 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 12:19:38,204 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,204 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:19:38,204 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:19:38,205 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:38,205 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 12:19:38,205 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,205 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:19:38,205 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:19:38,206 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 12:19:38,206 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 12:19:38,206 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,206 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:19:38,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#519616639] 12:19:38,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1459382796] 12:19:38,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-197280217] 12:19:38,208 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 12:19:38,208 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,409 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:38,409 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.211:17355, Removed) 12:19:38,409 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 12:19:38,409 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:19:38,409 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:19:38,409 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:19:38,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#802935944] 12:19:38,420 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#249588419] 12:19:38,420 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1108332886] 12:19:38,423 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,423 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 12:19:38,574 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:38,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1411921641] 12:19:38,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#23221092] 12:19:38,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#271611644] 12:19:38,587 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 12:19:38,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,588 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 12:19:38,588 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 12:19:38,589 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1422880209] 12:19:38,599 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1521502107] 12:19:38,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-1587166170] 12:19:38,602 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 12:19:38,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,603 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 12:19:38,603 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,604 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 12:19:38,604 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:19:38,604 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:19:38,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:19:38,605 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:19:38,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:19:38,605 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:19:38,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:19:38,605 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:19:38,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:19:38,605 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 12:19:38,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 12:19:38,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#80815562] 12:19:38,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-514950002] 12:19:38,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#414859896] 12:19:38,619 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 12:19:38,619 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,620 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:19:38,620 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:19:38,620 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:19:38,620 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:19:38,621 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 12:19:38,621 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:38,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#1364236891] 12:19:38,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1796528140] 12:19:38,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-1958599388] 12:19:38,635 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 12:19:38,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:38,636 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 12:19:38,636 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 12:19:38,637 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:19:38,637 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:19:38,638 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:19:38,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1223709129] 12:19:38,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#600543450] 12:19:38,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-614471396] 12:19:38,652 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 12:19:38,653 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:19:38,653 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:19:38,654 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [06/26/2025 12:19:38.654] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@320f9fd2 [INFO] [pekkoDeadLetter][06/26/2025 12:19:38.654] [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'. 12:19:38,654 PM [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'. 12:19:38,655 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 12:19:38,655 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 12:19:38,655 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:38,655 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3247fead 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [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]]} 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [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} 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 12:19:38,658 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 12:19:38,659 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 12:19:38,659 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:19:38,659 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:19:38,659 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:19:38,659 PM [test-pekko.actor.default-dispatcher-7] [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] 12:19:38,660 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 12:19:38,660 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 12:19:38,660 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:19:38,660 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 12:19:38,660 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 [WARN] [06/26/2025 12:19:38.660] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 12:19:38,660 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/26/2025 12:19:38.660] [test-pekko.actor.default-dispatcher-7] [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'. 12:19:38,660 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d761114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.tmp 12:19:38,664 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d761114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1 12:19:38,665 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d761114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1 12:19:38,665 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d761114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:19:38,665 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d761114] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T12:19:38.660115051Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1, size=573, entryCompress=NONE, stateCompress=NONE} 12:19:38,665 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-26T12:19:38.660115051Z 12:19:38,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 12:19:38,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 12:19:38,666 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 12:19:38,810 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1 12:19:38,810 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:19:38,810 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T12:19:38.660115051Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:19:38,812 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:19:38,823 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:19:38,823 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/26/2025 12:19:38.824] [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@682df91e [INFO] [pekkoDeadLetter][06/26/2025 12:19:38.824] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 12:19:38,824 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 12:19:38,825 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:19:38,825 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:19:38,825 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:19:38,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:38,827 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1 12:19:38,827 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:19:38,827 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T12:19:38.660115051Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest62431579142886704/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D3ADA-27588E6B.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:19:38,827 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-26T12:19:38.660115051Z 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 138.3 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 612.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:19:38,828 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@259ed8cd 12:19:38,829 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1469027157] 12:19:38,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-2079853254] 12:19:38,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1434200804] 12:19:38,830 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:19:38,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:19:38,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:19:38,832 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 12:19:38,832 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,133 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:19:39,263 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:39,263 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 12:19:39,514 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 12:19:39,714 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 12:19:39,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-1313634217] 12:19:39,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-425670089] 12:19:39,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1747487807] 12:19:39,728 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,729 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:19:39,729 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 12:19:39,729 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:19:39,729 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:19:39,730 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:19:39,730 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-2040883627] 12:19:39,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-1130139415] 12:19:39,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-362696858] 12:19:39,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,745 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 12:19:39,746 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 12:19:39,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-1981034046] 12:19:39,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#326145217] 12:19:39,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#971788059] 12:19:39,762 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 12:19:39,764 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:39,765 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 12:19:39,765 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 12:19:39,765 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:19:39,765 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:19:39,765 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 12:19:39,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-883917744] 12:19:39,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#120640275] 12:19:39,777 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#581773907] 12:19:39,779 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,781 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 12:19:39,781 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 12:19:39,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1237403986] 12:19:39,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-160788979] 12:19:39,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-14602965] 12:19:39,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,795 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 12:19:39,796 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 12:19:39,796 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 12:19:39,796 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 12:19:39,797 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 12:19:39,798 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:19:39,798 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 12:19:39,798 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 12:19:39,798 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 12:19:39,799 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 12:19:39,799 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 12:19:39,800 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:19:39,800 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1999753940] 12:19:39,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#454309299] 12:19:39,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#665068034] 12:19:39,813 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,813 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:19:39,813 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:19:39,814 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,814 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 12:19:39,814 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:19:39,814 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:19:39,814 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:19:39,814 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:19:39,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1462455029] 12:19:39,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#493103120] 12:19:39,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#1233115008] 12:19:39,828 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,829 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 12:19:39,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#2104047997] 12:19:39,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1063114673] 12:19:39,840 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#236542209] 12:19:39,842 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:19:39,843 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 12:19:39,844 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:19:39,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#882224835] 12:19:39,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#2083117427] 12:19:39,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1181822549] [INFO] [06/26/2025 12:19:39.856] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:19:39,856 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/26/2025 12:19:39.857] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.211:17355) [INFO] [06/26/2025 12:19:39.857] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - Exiting completed [INFO] [pekkoDeadLetter][06/26/2025 12:19:39.857] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-70585698] 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'. 12:19:39,857 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - Exiting completed 12:19:39,857 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-70585698] 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'. 12:19:39,857 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - Shutting down... [INFO] [06/26/2025 12:19:39.857] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - Shutting down... [INFO] [06/26/2025 12:19:39.857] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.211:17355] - Successfully shut down 12:19:39,858 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.211:17355] - Successfully shut down [INFO] [06/26/2025 12:19:39.860] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.211:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/26/2025 12:19:39.860] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.211:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:19:39,860 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:19:39,860 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/26/2025 12:19:39.863] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.211:17355/system/remoting-terminator] Remoting shut down. 12:19:39,863 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/26/2025 12:19:39.863] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger