[DEBUG] [06/25/2025 18:23:38.929] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:23:38,929 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/25/2025 18:23:38.929] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/25/2025 18:23:38.929] [main] [EventStream(pekko://test)] Default Loggers started 06:23:38,946 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.98:17355] with UID [4379576419968118011] 06:23:38,946 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/25/2025 18:23:38.945] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.98:17355] with UID [4379576419968118011] [INFO] [06/25/2025 18:23:38.946] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/25/2025 18:23:38.949] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/25/2025 18:23:38.949] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - Started up successfully 06:23:38,950 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:23:38,950 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - Started up successfully [INFO] [06/25/2025 18:23:38.951] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/25/2025 18:23:38.951] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:23:38,951 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:23:38,951 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:23:38,965 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:23:38,965 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,76 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:23:39,76 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:23:39,76 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:23:39,77 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:23:39,77 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:23:39,77 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:23:39,78 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:23:39,78 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:23:39,80 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:23:39,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-998620282] 06:23:39,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-1764424234] 06:23:39,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#929174898] 06:23:39,85 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:23:39,85 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,86 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:23:39,87 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 06:23:39,87 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,87 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:23:39,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1889434894] 06:23:39,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#2027286638] 06:23:39,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#624692348] 06:23:39,91 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:23:39,91 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,92 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:23:39,92 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:23:39,92 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:23:39,92 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:23:39,93 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:23:39,93 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:23:39,93 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:23:39,93 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:23:39,94 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,94 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,95 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:23:39,95 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,95 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:23:39,95 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1222684469] 06:23:39,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#201170459] 06:23:39,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#290907562] 06:23:39,98 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,99 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:23:39,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-366070295] 06:23:39,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#237094156] 06:23:39,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#832076894] 06:23:39,119 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:23:39,119 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,121 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,121 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,122 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,123 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:23:39,123 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:23:39,123 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:23:39,124 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:23:39,124 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,125 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,125 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:23:39,126 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:23:39,129 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#257376702] 06:23:39,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#2038147355] 06:23:39,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#2020739596] 06:23:39,146 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:23:39,147 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,148 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 06:23:39,148 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,148 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:23:39,149 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:23:39,149 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:23:39,149 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:23:39,149 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,149 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:23:39,149 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:23:39,149 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:23:39,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:23:39,149 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:23:39,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:23:39,151 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:23:39,152 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,152 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:23:39,152 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:23:39,152 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:23:39,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:23:39,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1596352168] 06:23:39,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#996960436] 06:23:39,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1013462862] 06:23:39,168 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:23:39,168 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,169 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:23:39,170 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:23:39,170 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,170 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:23:39,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1613428177] 06:23:39,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#941453764] 06:23:39,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1174022011] 06:23:39,184 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#88782667] 06:23:39,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#2141389072] 06:23:39,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#346150091] 06:23:39,202 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:23:39,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:23:39,203 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,204 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,204 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:23:39,205 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:23:39,205 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:23:39,205 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:23:39,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1521972882] 06:23:39,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-1990415544] 06:23:39,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1822536611] 06:23:39,233 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/25/2025 18:23:39.236] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2d6cf7c7 06:23:39,236 PM [test-pekko.actor.default-dispatcher-12] [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'. [INFO] [pekkoDeadLetter][06/25/2025 18:23:39.236] [test-pekko.actor.default-dispatcher-6] [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'. 06:23:39,239 PM [test-pekko.actor.default-dispatcher-9] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:23:39,239 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:23:39,239 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:23:39,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:23:39,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:23:39,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:39,241 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:23:39,398 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:39,398 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:23:39,398 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6733b252 06:23:39,399 PM [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]]} 06:23:39,399 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:23:39,400 PM [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} 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:23:39,400 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 06:23:39,401 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 06:23:39,402 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d168290] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C3EAB-17F9ACA6.tmp [WARN] [06/25/2025 18:23:39.402] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 06:23:39,402 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/25/2025 18:23:39.402] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:23:39,497 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d168290] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C3EAB-17F9ACA6.v1 06:23:39,497 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d168290] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C3EAB-17F9ACA6.v1 06:23:39,498 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d168290] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:23:39,498 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d168290] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T18:23:39.402238630Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C3EAB-17F9ACA6.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:23:39,498 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-25T18:23:39.402238630Z 06:23:39,498 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 06:23:39,498 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:23:39,499 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 06:23:39,551 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C3EAB-17F9ACA6.v1 06:23:39,551 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:23:39,552 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T18:23:39.402238630Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17415214588248905535/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C3EAB-17F9ACA6.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:23:39,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-728431088] 06:23:39,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#315773788] 06:23:39,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1510582616] 06:23:39,566 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:23:39,566 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:23:39,566 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:23:39,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1874030484] 06:23:39,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#907998558] 06:23:39,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1768808815] 06:23:39,585 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:23:39,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,592 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 06:23:39,592 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:23:39,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1030975091] 06:23:39,594 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#322675738] 06:23:39,594 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-746207518] 06:23:39,597 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:23:39,597 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,597 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:23:39,598 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,598 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,599 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:23:39,599 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:23:39,599 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#771235987] 06:23:39,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1205100286] 06:23:39,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-787634434] 06:23:39,602 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:23:39,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,603 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,603 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,603 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:23:39,603 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,604 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,604 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:23:39,604 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,605 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:23:39,605 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,605 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:23:39,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-2031113498] 06:23:39,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1537339582] 06:23:39,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-661045876] 06:23:39,608 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#324927927] 06:23:39,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1918229208] 06:23:39,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#95141459] 06:23:39,610 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:23:39,610 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,610 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,611 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,611 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:23:39,611 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,611 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,611 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:23:39,612 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,612 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:23:39,612 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,613 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:23:39,613 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,613 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:23:39,613 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,613 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:23:39,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1707017006] 06:23:39,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1174170594] 06:23:39,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-873680988] 06:23:39,616 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:23:39,616 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:23:39,616 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,617 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:23:39,617 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:23:39,617 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:23:39,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1413005517] 06:23:39,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1224090914] 06:23:39,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1266491699] 06:23:39,618 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:23:39,618 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,619 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:23:39,620 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 06:23:39,620 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 06:23:39,621 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:23:39,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#2073338478] 06:23:39,622 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-317303052] 06:23:39,622 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#1742049814] 06:23:39,623 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:23:39,623 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,623 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,624 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,624 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:23:39,624 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:23:39,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1413566679] 06:23:39,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-810170156] 06:23:39,626 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-1258750062] 06:23:39,629 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:23:39,630 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,630 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,630 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,630 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:23:39,631 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,631 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1896259573] 06:23:39,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#230432907] 06:23:39,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#4779371] 06:23:39,633 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/25/2025 18:23:39.634] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@69760319 06:23:39,634 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/25/2025 18:23:39.634] [test-pekko.actor.default-dispatcher-9] [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'. 06:23:39,634 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:23:39,634 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:23:39,634 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:23:39,637 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:23:39,637 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:23:39,637 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:23:39,637 PM [test-pekko.actor.default-dispatcher-9] [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 06:23:39,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:23:39,660 PM [test-pekko.actor.default-dispatcher-9] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:23:39,660 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@42f02c86 06:23:39,663 PM [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]]} 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:23:39,664 PM [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} 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:23:39,664 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:23:39,671 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 06:23:39,672 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [06/25/2025 18:23:39.672] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 18:23:39.672] [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'. 06:23:39,676 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959187] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C3EAB-2809795F.tmp 06:23:39,682 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959187] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C3EAB-2809795F.v1 06:23:39,683 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959187] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C3EAB-2809795F.v1 06:23:39,683 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959187] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:23:39,683 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959187] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T18:23:39.671709535Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C3EAB-2809795F.v1, size=701, entryCompress=NONE, stateCompress=NONE} 06:23:39,684 PM [test-pekko.actor.default-dispatcher-9] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-25T18:23:39.671709535Z 06:23:39,684 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 06:23:39,684 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:23:39,685 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 06:23:39,766 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C3EAB-2809795F.v1 06:23:39,766 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:23:39,766 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T18:23:39.671709535Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3843167732353894932/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C3EAB-2809795F.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 06:23:39,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-265105913] 06:23:39,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#239986398] 06:23:39,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1475087737] 06:23:39,774 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:23:39,774 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:23:39,774 PM [test-pekko.actor.default-dispatcher-9] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:23:39,777 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:23:39,777 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,778 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,778 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 06:23:39,778 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 06:23:39,779 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,779 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:23:39,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#708190448] 06:23:39,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#318676720] 06:23:39,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#2119432756] 06:23:39,781 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:23:39,781 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,782 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:23:39,783 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:23:39,783 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:23:39,783 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:23:39,783 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:23:39,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-788364136] 06:23:39,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-2043562364] 06:23:39,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#230168630] 06:23:39,785 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:23:39,785 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,785 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:23:39,786 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:23:39,786 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,786 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:23:39,786 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:23:39,786 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:23:39,786 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:23:39,786 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:23:39,786 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:23:39,786 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:23:39,786 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:23:39,786 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:23:39,786 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:23:39,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1716930554] 06:23:39,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1218213143] 06:23:39,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#2018288988] 06:23:39,789 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:23:39,789 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,789 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:23:39,789 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:23:39,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#1059389819] 06:23:39,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-1971040128] 06:23:39,790 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#2042605546] 06:23:39,791 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:23:39,791 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,791 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:23:39,791 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:23:39,791 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:23:39,792 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:23:39,792 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:23:39,793 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,793 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:23:39,793 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:23:39,793 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:23:39,793 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:23:39,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1957852592] 06:23:39,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1179196886] 06:23:39,794 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-583272835] 06:23:39,795 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:23:39,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:39,795 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:23:39,796 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,796 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:23:39,796 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,796 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:23:39,796 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:23:39,797 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,797 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:23:39,797 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,797 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:23:39,797 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:23:39,798 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:23:39,798 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:23:39,798 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:39,798 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:23:39,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#297910793] 06:23:39,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#950614822] 06:23:39,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#2038592084] 06:23:39,800 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:23:39,800 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,0 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:23:40,0 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.98:17355, Removed) 06:23:40,1 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:23:40,1 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:23:40,1 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:23:40,1 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:23:40,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-2131552593] 06:23:40,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1719089389] 06:23:40,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-625820341] 06:23:40,6 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,6 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:23:40,157 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:23:40,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1635760738] 06:23:40,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1032702762] 06:23:40,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-983382564] 06:23:40,163 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:23:40,164 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,165 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:23:40,166 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:23:40,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#384772071] 06:23:40,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#687521276] 06:23:40,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#978714817] 06:23:40,179 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:23:40,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:23:40,181 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:23:40,182 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:40,182 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:23:40,182 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:23:40,182 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:23:40,182 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:23:40,182 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:23:40,182 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:23:40,182 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:23:40,182 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:23:40,182 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:23:40,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:23:40,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:23:40,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:23:40,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1125194673] 06:23:40,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1114579610] 06:23:40,184 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#926283065] 06:23:40,187 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:23:40,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,188 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:23:40,188 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:23:40,188 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:23:40,189 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:23:40,189 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 06:23:40,190 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:40,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-695563496] 06:23:40,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1099491580] 06:23:40,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#78359038] 06:23:40,194 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:23:40,194 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,194 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:23:40,195 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:23:40,195 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:23:40,195 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:23:40,195 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:23:40,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-422966859] 06:23:40,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1663723646] 06:23:40,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#707229745] 06:23:40,198 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/25/2025 18:23:40.198] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@764f4690 06:23:40,199 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][06/25/2025 18:23:40.198] [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. [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'. 06:23:40,199 PM [test-pekko.actor.default-dispatcher-9] [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'. 06:23:40,199 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:23:40,199 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:23:40,201 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:23:40,201 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:23:40,201 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:40,201 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:23:40,203 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:40,203 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:23:40,203 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@143e0ae5 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [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]]} 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [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} 06:23:40,204 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:23:40,205 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [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] 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:23:40,206 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 06:23:40,206 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d108319] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.tmp [WARN] [06/25/2025 18:23:40.206] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 18:23:40.206] [test-pekko.actor.default-dispatcher-12] [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'. 06:23:40,206 PM [test-pekko.actor.default-dispatcher-9] [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'. 06:23:40,208 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d108319] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1 06:23:40,208 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d108319] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1 06:23:40,208 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d108319] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:23:40,208 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d108319] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T18:23:40.206137035Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:23:40,210 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-25T18:23:40.206137035Z 06:23:40,210 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 06:23:40,210 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:23:40,212 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 06:23:40,308 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1 06:23:40,308 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:23:40,308 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T18:23:40.206137035Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:23:40,315 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:23:40,326 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:23:40,326 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/25/2025 18:23:40.327] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@224edaee [INFO] [pekkoDeadLetter][06/25/2025 18:23:40.327] [test-pekko.actor.default-dispatcher-9] [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'. 06:23:40,327 PM [test-pekko.actor.default-dispatcher-9] [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'. 06:23:40,327 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:23:40,327 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:23:40,327 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T18:23:40.206137035Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9346140662708316277/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C3EAC-0C4966CB.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-25T18:23:40.206137035Z 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 84.83 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 06:23:40,329 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:23:40,330 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 278.2 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:23:40,330 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:23:40,330 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:23:40,330 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3c026da9 06:23:40,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-693615303] 06:23:40,428 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#829837498] 06:23:40,428 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-609821013] 06:23:40,428 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:23:40,428 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:23:40,429 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:23:40,432 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:23:40,432 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:40,733 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:23:40,863 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:23:40,863 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:23:41,114 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:23:41,314 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:23:41,314 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#1190206043] 06:23:41,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-455245817] 06:23:41,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#815732879] 06:23:41,328 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,329 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:23:41,329 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:23:41,329 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:23:41,329 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:23:41,329 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:23:41,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-790739024] 06:23:41,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1588052366] 06:23:41,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1673214617] 06:23:41,348 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,349 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:23:41,349 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:23:41,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#521609462] 06:23:41,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-476636570] 06:23:41,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1901576296] 06:23:41,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,365 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 06:23:41,365 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:23:41,365 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:23:41,365 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:23:41,365 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:23:41,365 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:23:41,366 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:41,366 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:23:41,366 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:23:41,366 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:23:41,366 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:23:41,366 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:23:41,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-25702267] 06:23:41,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#980522869] 06:23:41,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#728220339] 06:23:41,370 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,371 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:23:41,371 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:23:41,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#1060904760] 06:23:41,372 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-68159283] 06:23:41,372 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1440838730] 06:23:41,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,373 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:23:41,374 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 06:23:41,374 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:23:41,374 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:23:41,375 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 06:23:41,375 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:23:41,375 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:23:41,375 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 06:23:41,375 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 06:23:41,376 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:23:41,376 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:23:41,377 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:23:41,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#2007434553] 06:23:41,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#2074404343] 06:23:41,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-297261333] 06:23:41,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:23:41,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:23:41,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,379 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:23:41,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:23:41,379 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:23:41,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:23:41,380 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:23:41,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-438469014] 06:23:41,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-1977865702] 06:23:41,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1294129816] 06:23:41,393 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,393 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:23:41,394 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#379119825] 06:23:41,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#2029570305] 06:23:41,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#574324333] 06:23:41,412 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:23:41,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:23:41,413 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:23:41,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#-768775489] 06:23:41,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#-1223425538] 06:23:41,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#-485680253] [INFO] [06/25/2025 18:23:41.425] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/25/2025 18:23:41.425] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.98:17355) 06:23:41,425 PM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [pekkoDeadLetter][06/25/2025 18:23:41.425] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#73742893] 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'. 06:23:41,425 PM [test-pekko.actor.default-dispatcher-15] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#73742893] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/25/2025 18:23:41.426] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - Exiting completed [INFO] [06/25/2025 18:23:41.426] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - Shutting down... [INFO] [06/25/2025 18:23:41.426] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.98:17355] - Successfully shut down 06:23:41,426 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - Exiting completed 06:23:41,426 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - Shutting down... 06:23:41,426 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.98:17355] - Successfully shut down [INFO] [06/25/2025 18:23:41.428] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.98:17355/system/remoting-terminator] Shutting down remote daemon. 06:23:41,428 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:23:41,428 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/25/2025 18:23:41.428] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.98:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:23:41,433 PM [test-pekko.actor.default-dispatcher-9] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/25/2025 18:23:41.433] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.98:17355/system/remoting-terminator] Remoting shut down.