[DEBUG] [06/23/2025 01:12:01.715] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 01:12:01,715 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/23/2025 01:12:01.715] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/23/2025 01:12:01.715] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/23/2025 01:12:01.729] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.212:17355] with UID [1045129501830767039] 01:12:01,729 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.212:17355] with UID [1045129501830767039] 01:12:01,731 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/23/2025 01:12:01.730] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/23/2025 01:12:01.732] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/23/2025 01:12:01.732] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - Started up successfully 01:12:01,733 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 01:12:01,733 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - Started up successfully 01:12:01,734 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 01:12:01,734 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [06/23/2025 01:12:01.733] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/23/2025 01:12:01.733] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 01:12:01,746 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 01:12:01,746 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,831 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:12:01,832 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:12:01,832 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:01,833 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:12:01,833 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 01:12:01,833 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 01:12:01,834 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 01:12:01,834 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 01:12:01,836 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 01:12:01,836 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-464599933] 01:12:01,847 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1370773413] 01:12:01,847 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#798679466] 01:12:01,849 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 01:12:01,849 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,852 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 01:12:01,852 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 01:12:01,853 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,853 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 01:12:01,853 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-207952478] 01:12:01,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-138866848] 01:12:01,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1066881116] 01:12:01,866 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 01:12:01,866 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,867 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:12:01,867 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:12:01,867 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:01,867 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:12:01,867 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 01:12:01,867 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 01:12:01,868 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 01:12:01,868 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:12:01,869 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:01,869 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:01,870 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 01:12:01,870 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,870 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 01:12:01,871 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-1518085939] 01:12:01,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1255314394] 01:12:01,881 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#56142514] 01:12:01,884 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,885 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 01:12:01,886 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1463750072] 01:12:01,896 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-225610114] 01:12:01,897 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1311237627] 01:12:01,899 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 01:12:01,899 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,900 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:01,901 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:01,902 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:01,902 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:12:01,902 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:12:01,902 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:12:01,903 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:12:01,903 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,903 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:01,903 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:12:01,905 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:12:01,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-75311042] 01:12:01,916 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#699437050] 01:12:01,917 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-808212145] 01:12:01,919 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 01:12:01,919 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,920 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 01:12:01,921 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:01,921 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 01:12:01,921 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:01,921 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:12:01,921 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 01:12:01,921 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,922 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:12:01,922 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:12:01,922 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:01,922 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:12:01,922 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:12:01,922 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:12:01,923 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,924 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 01:12:01,924 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:01,925 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:12:01,925 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:12:01,925 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-265471506] 01:12:01,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-818586428] 01:12:01,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#691417500] 01:12:01,938 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 01:12:01,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,939 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 01:12:01,940 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 01:12:01,941 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,941 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 01:12:01,941 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1389238134] 01:12:01,952 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-842860091] 01:12:01,952 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-871268251] 01:12:01,955 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,959 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#1546151560] 01:12:01,969 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#181830118] 01:12:01,970 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#92282347] 01:12:01,972 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 01:12:01,972 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:01,972 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 01:12:01,973 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:01,974 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:01,974 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:01,974 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:12:01,974 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:12:01,974 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:12:01,975 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:12:01,975 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:01,975 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:01,975 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 01:12:01,975 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 01:12:01,975 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 01:12:01,976 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 01:12:01,976 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1565555500] 01:12:01,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-2041867067] 01:12:01,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-2076029682] 01:12:01,990 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/23/2025 01:12:01.993] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@16109fc7 [INFO] [pekkoDeadLetter][06/23/2025 01:12:01.993] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:01,993 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:01,995 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 01:12:01,995 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 01:12:01,995 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 01:12:01,996 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 01:12:01,996 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 01:12:01,996 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:01,997 AM [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 01:12:02,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:02,0 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 01:12:02,0 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@60c0c5e3 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [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]]} 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [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} 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 01:12:02,1 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 01:12:02,2 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:12:02,2 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:12:02,2 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 01:12:02,2 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 01:12:02,2 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 01:12:02,2 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 01:12:02,2 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d20198] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006858A9E2-0025D089.tmp 01:12:02,3 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 01:12:02,4 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 [WARN] [06/23/2025 01:12:02.004] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/23/2025 01:12:02.004] [test-pekko.actor.default-dispatcher-7] [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'. 01:12:02,4 AM [test-pekko.actor.default-dispatcher-6] [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'. 01:12:02,6 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d20198] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006858A9E2-0025D089.v1 01:12:02,6 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d20198] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006858A9E2-0025D089.v1 01:12:02,6 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d20198] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:12:02,6 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d20198] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-23T01:12:02.002478217Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006858A9E2-0025D089.v1, size=555, entryCompress=NONE, stateCompress=NONE} 01:12:02,6 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-23T01:12:02.002478217Z 01:12:02,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 01:12:02,6 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 01:12:02,7 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 01:12:02,105 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006858A9E2-0025D089.v1 01:12:02,105 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 01:12:02,105 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-23T01:12:02.002478217Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11663719280879422496/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006858A9E2-0025D089.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 01:12:02,107 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1859409444] 01:12:02,118 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-1897347623] 01:12:02,118 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1552971509] 01:12:02,118 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 01:12:02,118 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 01:12:02,118 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 01:12:02,122 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,123 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#792438470] 01:12:02,123 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1189820551] 01:12:02,123 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1713886343] 01:12:02,125 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 01:12:02,125 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,130 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 01:12:02,130 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 01:12:02,130 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#271747555] 01:12:02,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1973651090] 01:12:02,131 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1662732839] 01:12:02,133 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 01:12:02,133 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,133 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:12:02,134 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,135 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:02,135 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:12:02,135 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:12:02,135 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-1777759672] 01:12:02,136 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1706835664] 01:12:02,136 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-997311014] 01:12:02,138 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 01:12:02,138 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,138 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,139 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,139 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 01:12:02,139 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,140 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:02,140 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 01:12:02,140 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,140 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 01:12:02,141 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,141 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 01:12:02,141 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#1861722004] 01:12:02,141 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#1132829659] 01:12:02,142 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#162610061] 01:12:02,144 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,144 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1498373299] 01:12:02,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1546295897] 01:12:02,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-422160409] 01:12:02,149 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 01:12:02,149 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,149 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,150 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,150 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 01:12:02,150 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,150 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:02,150 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:12:02,151 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,151 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 01:12:02,151 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,151 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:12:02,152 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,153 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 01:12:02,153 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,153 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:12:02,153 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#1096844572] 01:12:02,154 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-370321249] 01:12:02,154 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-632340209] 01:12:02,155 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 01:12:02,156 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,158 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,159 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 01:12:02,159 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 01:12:02,159 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 01:12:02,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1295087163] 01:12:02,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1568232628] 01:12:02,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-2009347488] 01:12:02,175 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 01:12:02,175 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,178 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:02,183 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 01:12:02,183 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 01:12:02,184 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 01:12:02,184 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#505100982] 01:12:02,195 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1102081498] 01:12:02,195 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1360940828] 01:12:02,199 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 01:12:02,200 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,200 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,202 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,202 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:02,202 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 01:12:02,202 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 01:12:02,203 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 01:12:02,203 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 01:12:02,203 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,203 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:02,203 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 01:12:02,203 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 01:12:02,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#982266991] 01:12:02,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1683327362] 01:12:02,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#637117024] 01:12:02,217 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 01:12:02,217 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,217 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,218 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,218 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 01:12:02,219 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,219 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:02,219 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1561386113] 01:12:02,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-1928598694] 01:12:02,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#1292837540] 01:12:02,233 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/23/2025 01:12:02.235] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@7c5da58 [INFO] [pekkoDeadLetter][06/23/2025 01:12:02.235] [test-pekko.actor.default-dispatcher-6] [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'. 01:12:02,235 AM [test-pekko.actor.default-dispatcher-13] [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'. 01:12:02,235 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 01:12:02,235 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 01:12:02,235 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 01:12:02,237 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 01:12:02,237 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 01:12:02,237 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 01:12:02,237 AM [test-pekko.actor.default-dispatcher-13] [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 01:12:02,244 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 01:12:02,244 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 01:12:02,244 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@7a8e2c68 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [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]]} 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [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} 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 01:12:02,245 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [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] 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 01:12:02,246 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [06/23/2025 01:12:02.246] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 01:12:02,246 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d109386] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006858A9E2-0EB456DB.tmp 01:12:02,247 AM [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'. [INFO] [pekkoDeadLetter][06/23/2025 01:12:02.247] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:02,249 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d109386] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006858A9E2-0EB456DB.v1 01:12:02,249 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d109386] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:12:02,249 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d109386] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006858A9E2-0EB456DB.v1 01:12:02,249 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d109386] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-23T01:12:02.246699739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006858A9E2-0EB456DB.v1, size=701, entryCompress=NONE, stateCompress=NONE} 01:12:02,250 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-23T01:12:02.246699739Z 01:12:02,250 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 01:12:02,250 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 01:12:02,250 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 01:12:02,348 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 01:12:02,348 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006858A9E2-0EB456DB.v1 01:12:02,348 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-23T01:12:02.246699739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7952887555190685394/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006858A9E2-0EB456DB.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 01:12:02,350 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1478848394] 01:12:02,361 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-2063701632] 01:12:02,361 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#455661074] 01:12:02,361 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 01:12:02,362 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 01:12:02,362 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 01:12:02,367 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 01:12:02,367 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,368 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,368 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 01:12:02,369 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 01:12:02,369 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,369 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 01:12:02,369 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-318923118] 01:12:02,380 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-2067652019] 01:12:02,380 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-135634223] 01:12:02,383 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 01:12:02,383 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,384 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 01:12:02,385 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 01:12:02,385 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 01:12:02,385 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 01:12:02,385 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 01:12:02,386 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1687462324] 01:12:02,397 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1749832526] 01:12:02,397 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-1349094379] 01:12:02,400 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 01:12:02,400 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,401 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 01:12:02,402 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:02,402 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 01:12:02,402 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 01:12:02,403 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,403 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 01:12:02,403 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 01:12:02,404 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:02,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:12:02,404 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:12:02,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:12:02,404 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:12:02,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:12:02,404 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:12:02,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 01:12:02,405 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1621204067] 01:12:02,416 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1280965541] 01:12:02,416 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1172037594] 01:12:02,420 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 01:12:02,420 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,421 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 01:12:02,421 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 01:12:02,422 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#446288236] 01:12:02,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#107900668] 01:12:02,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#375938167] 01:12:02,438 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 01:12:02,438 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,439 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:12:02,439 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:12:02,439 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:02,440 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:12:02,440 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,442 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 01:12:02,442 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:02,443 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:12:02,443 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:12:02,443 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#36649414] 01:12:02,454 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-71881655] 01:12:02,454 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#167575548] 01:12:02,457 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 01:12:02,458 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,459 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 01:12:02,460 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,460 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 01:12:02,460 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,461 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 01:12:02,461 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 01:12:02,461 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,462 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 01:12:02,462 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,462 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 01:12:02,462 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 01:12:02,463 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 01:12:02,463 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 01:12:02,464 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,464 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 01:12:02,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-700097747] 01:12:02,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#176591606] 01:12:02,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#485128248] 01:12:02,478 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 01:12:02,478 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,679 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:02,679 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.212:17355, Removed) 01:12:02,679 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 01:12:02,679 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 01:12:02,679 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:12:02,679 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:02,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1513868925] 01:12:02,680 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-615766208] 01:12:02,681 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1619820155] 01:12:02,684 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,684 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 01:12:02,886 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:02,886 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1836966211] 01:12:02,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-139977202] 01:12:02,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-190188577] 01:12:02,891 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 01:12:02,891 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,893 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 01:12:02,893 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 01:12:02,894 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1081994388] 01:12:02,894 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1360867820] 01:12:02,895 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1149324330] 01:12:02,897 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 01:12:02,897 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,898 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 01:12:02,898 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 01:12:02,898 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:02,898 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:12:02,898 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 01:12:02,898 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 01:12:02,898 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 01:12:02,898 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 01:12:02,898 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 01:12:02,898 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 01:12:02,898 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 01:12:02,898 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 01:12:02,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-1403355748] 01:12:02,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#1253667339] 01:12:02,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#369802087] 01:12:02,901 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 01:12:02,901 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,901 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 01:12:02,901 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 01:12:02,901 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:02,901 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 01:12:02,902 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 01:12:02,902 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:02,902 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#2054380336] 01:12:02,903 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-774238961] 01:12:02,903 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-848660366] 01:12:02,904 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 01:12:02,904 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:02,904 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 01:12:02,905 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 01:12:02,905 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 01:12:02,905 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 01:12:02,905 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 01:12:02,905 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#292131051] 01:12:02,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1188643134] 01:12:02,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#466741514] 01:12:02,907 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/23/2025 01:12:02.908] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2a16881c 01:12:02,908 AM [test-pekko.actor.default-dispatcher-12] [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'. [INFO] [pekkoDeadLetter][06/23/2025 01:12:02.908] [test-pekko.actor.default-dispatcher-13] [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'. 01:12:02,908 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 01:12:02,908 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:12:02,908 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:12:02,910 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 01:12:02,910 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 01:12:02,910 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:02,910 AM [test-pekko.actor.default-dispatcher-7] [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 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@320f1c99 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [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]]} 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [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} 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 01:12:02,913 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 01:12:02,914 AM [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] 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 01:12:02,914 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 01:12:02,915 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d939457] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.tmp [WARN] [06/23/2025 01:12:02.915] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/23/2025 01:12:02.915] [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'. 01:12:02,915 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:02,917 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d939457] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1 01:12:02,918 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d939457] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1 01:12:02,918 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d939457] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:12:02,918 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d939457] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-23T01:12:02.914894832Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1, size=573, entryCompress=NONE, stateCompress=NONE} 01:12:02,919 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-23T01:12:02.914894832Z 01:12:02,919 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 01:12:02,919 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 01:12:02,919 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 01:12:03,65 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1 01:12:03,65 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:12:03,66 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-23T01:12:02.914894832Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 01:12:03,67 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 01:12:03,68 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:12:03,69 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/23/2025 01:12:03.070] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@54e122cc [INFO] [pekkoDeadLetter][06/23/2025 01:12:03.070] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 01:12:03,70 AM [test-pekko.actor.default-dispatcher-13] [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'. 01:12:03,70 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 01:12:03,70 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:12:03,70 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 01:12:03,72 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:03,72 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1 01:12:03,72 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 01:12:03,72 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-23T01:12:02.914894832Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest377235838889753125/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006858A9E2-36882FF0.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 01:12:03,73 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 01:12:03,73 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-23T01:12:02.914894832Z 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 152.7 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 557.8 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 01:12:03,74 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.PekkoReplicatedLog@485da64e 01:12:03,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#290682124] 01:12:03,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#101889015] 01:12:03,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#1155321347] 01:12:03,75 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 01:12:03,78 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:12:03,78 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 01:12:03,80 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 01:12:03,81 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:03,381 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 01:12:03,511 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:03,511 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 01:12:03,762 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 01:12:03,962 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 01:12:03,962 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1018220112] 01:12:03,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-938800175] 01:12:03,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1634837876] 01:12:03,976 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:03,977 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:03,977 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 01:12:03,977 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 01:12:03,977 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 01:12:03,977 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:03,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#1799771765] 01:12:03,988 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#1390519428] 01:12:03,988 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-543656574] 01:12:03,991 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:03,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 01:12:03,993 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 01:12:03,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1544242266] 01:12:04,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1414325324] 01:12:04,4 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#980182538] 01:12:04,6 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,7 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:04,8 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 01:12:04,8 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 01:12:04,9 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 01:12:04,9 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:12:04,9 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 01:12:04,9 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-763688270] 01:12:04,20 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1812899767] 01:12:04,20 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1956862974] 01:12:04,22 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,24 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 01:12:04,24 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 01:12:04,25 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#761527315] 01:12:04,36 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#836584954] 01:12:04,36 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-266496029] 01:12:04,38 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,38 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 01:12:04,39 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 01:12:04,40 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 01:12:04,40 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 01:12:04,41 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 01:12:04,42 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:12:04,42 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 01:12:04,42 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 01:12:04,42 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 01:12:04,43 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 01:12:04,44 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 01:12:04,45 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 01:12:04,45 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-592462497] 01:12:04,56 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#707524503] 01:12:04,56 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1529226226] 01:12:04,58 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,58 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:12:04,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 01:12:04,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,59 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 01:12:04,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 01:12:04,59 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 01:12:04,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 01:12:04,59 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 01:12:04,60 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1515268470] 01:12:04,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1431913144] 01:12:04,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-362935144] 01:12:04,72 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,73 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 01:12:04,73 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#347233549] 01:12:04,84 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1230293657] 01:12:04,84 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1505979782] 01:12:04,86 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 01:12:04,87 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 01:12:04,87 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 01:12:04,88 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1416798157] 01:12:04,98 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#277752675] 01:12:04,98 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#405856826] [INFO] [06/23/2025 01:12:04.099] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:12:04,99 AM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/23/2025 01:12:04.100] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.212:17355) 01:12:04,100 AM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-587798383] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/23/2025 01:12:04.100] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-587798383] 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'. 01:12:04,101 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - Exiting completed [INFO] [06/23/2025 01:12:04.100] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - Exiting completed 01:12:04,101 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - Shutting down... 01:12:04,101 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.212:17355] - Successfully shut down [INFO] [06/23/2025 01:12:04.101] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - Shutting down... [INFO] [06/23/2025 01:12:04.101] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.212:17355] - Successfully shut down [INFO] [06/23/2025 01:12:04.102] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.212:17355/system/remoting-terminator] Shutting down remote daemon. 01:12:04,102 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:12:04,102 AM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/23/2025 01:12:04.102] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.212:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:12:04,105 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/23/2025 01:12:04.105] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.212:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [06/23/2025 01:12:04.105] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger