[DEBUG] [06/25/2025 17:31:53.957] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:31:53,957 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/25/2025 17:31:53.958] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/25/2025 17:31:53.958] [main] [EventStream(pekko://test)] Default Loggers started 05:31:53,978 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.215:17355] with UID [-7223068409166060020] 05:31:53,978 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - Starting up, Pekko version [1.0.3] ... 05:31:53,978 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/25/2025 17:31:53.974] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.215:17355] with UID [-7223068409166060020] 05:31:53,978 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - Started up successfully 05:31:53,978 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215: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 17:31:53.975] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/25/2025 17:31:53.977] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/25/2025 17:31:53.977] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - Started up successfully [INFO] [06/25/2025 17:31:53.978] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:31:53,979 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [06/25/2025 17:31:53.978] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:31:54,3 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:31:54,3 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,102 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:31:54,102 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:31:54,102 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:31:54,103 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:31:54,104 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:31:54,105 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:31:54,105 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:31:54,105 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:31:54,107 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:31:54,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-440609006] 05:31:54,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1561434270] 05:31:54,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-433502322] 05:31:54,120 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:31:54,121 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,123 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]]} 05:31:54,124 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 05:31:54,124 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} 05:31:54,124 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:31:54,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#567521427] 05:31:54,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1586300131] 05:31:54,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#587138377] 05:31:54,141 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:31:54,141 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,142 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:31:54,142 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:31:54,142 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:31:54,142 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:31:54,143 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:31:54,143 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:31:54,143 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:31:54,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:31:54,145 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 05:31:54,145 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]]} 05:31:54,146 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 05:31:54,146 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} 05:31:54,146 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:31:54,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#1691245104] 05:31:54,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#1339675470] 05:31:54,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-893021885] 05:31:54,156 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,157 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:31:54,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-2037726731] 05:31:54,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-2003809858] 05:31:54,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#781262576] 05:31:54,176 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:31:54,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,177 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 05:31:54,178 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]]} 05:31:54,178 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,178 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:31:54,178 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:31:54,178 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:31:54,179 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:31:54,179 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} 05:31:54,179 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,179 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:31:54,180 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:31:54,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#2081151144] 05:31:54,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1148479413] 05:31:54,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1554869925] 05:31:54,200 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:31:54,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,202 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]]} 05:31:54,202 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,202 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:31:54,202 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:31:54,202 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:31:54,202 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:31:54,202 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} 05:31:54,202 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:31:54,202 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:31:54,202 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:31:54,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:31:54,203 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:31:54,203 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:31:54,204 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]]} 05:31:54,204 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:31:54,204 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:31:54,204 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:31:54,204 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:31:54,204 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:31:54,204 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:31:54,204 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} 05:31:54,205 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:31:54,205 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:31:54,205 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:31:54,205 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:31:54,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-2141429001] 05:31:54,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#940422490] 05:31:54,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-924523036] 05:31:54,225 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:31:54,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,229 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 05:31:54,230 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 05:31:54,230 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} 05:31:54,230 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:31:54,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1676555275] 05:31:54,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-1773287242] 05:31:54,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-759791873] 05:31:54,241 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#247315707] 05:31:54,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1917254290] 05:31:54,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1149245491] 05:31:54,257 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:31:54,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:31:54,259 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 05:31:54,259 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]]} 05:31:54,260 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,260 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:31:54,260 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:31:54,260 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:31:54,260 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:31:54,260 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} 05:31:54,260 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,260 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:31:54,261 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:31:54,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:31:54,261 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:31:54,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-2099078548] 05:31:54,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#1857777278] 05:31:54,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1174370047] 05:31:54,276 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/25/2025 17:31:54.279] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5475f7df [INFO] [pekkoDeadLetter][06/25/2025 17:31:54.279] [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'. 05:31:54,279 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:31:54,280 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 05:31:54,280 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:31:54,280 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:31:54,281 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:31:54,282 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:31:54,282 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:54,282 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 05:31:54,284 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:54,284 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:31:54,284 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@467ee1a6 05:31:54,285 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]]} 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:31:54,285 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} 05:31:54,285 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 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 05:31:54,285 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 05:31:54,286 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:31:54,286 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:31:54,287 PM [test-pekko.actor.default-dispatcher-11] [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] 05:31:54,287 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:31:54,287 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:31:54,287 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:31:54,287 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:31:54,287 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 05:31:54,287 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d744287] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C328A-111D7AEF.tmp [WARN] [06/25/2025 17:31:54.287] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 17:31:54.287] [test-pekko.actor.default-dispatcher-11] [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'. 05:31:54,287 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:31:54,292 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d744287] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C328A-111D7AEF.v1 05:31:54,292 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d744287] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C328A-111D7AEF.v1 05:31:54,292 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d744287] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:31:54,292 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d744287] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T17:31:54.287144687Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C328A-111D7AEF.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:31:54,293 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-25T17:31:54.287144687Z 05:31:54,293 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 05:31:54,293 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:31:54,300 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 05:31:54,436 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C328A-111D7AEF.v1 05:31:54,437 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:31:54,437 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T17:31:54.287144687Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3912052287329751053/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C328A-111D7AEF.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:31:54,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-724849202] 05:31:54,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-1554593861] 05:31:54,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-923197696] 05:31:54,451 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:31:54,451 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:31:54,451 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:31:54,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#2137794203] 05:31:54,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-248050051] 05:31:54,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#2790711] 05:31:54,468 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:31:54,469 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,470 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 05:31:54,470 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:31:54,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-2140902978] 05:31:54,481 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-636126130] 05:31:54,481 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1105060910] 05:31:54,484 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:31:54,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,485 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 05:31:54,486 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]]} 05:31:54,486 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,486 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:31:54,486 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:31:54,486 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:31:54,486 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:31:54,486 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} 05:31:54,487 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,487 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:31:54,487 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:31:54,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#321493514] 05:31:54,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-244490907] 05:31:54,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#862546924] 05:31:54,490 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:31:54,490 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,490 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 05:31:54,491 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]]} 05:31:54,491 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 05:31:54,491 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} 05:31:54,492 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,492 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:31:54,493 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]]} 05:31:54,493 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 05:31:54,493 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} 05:31:54,494 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:31:54,494 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#609148549] 05:31:54,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#533483824] 05:31:54,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#1498785140] 05:31:54,497 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1361312034] 05:31:54,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1438954355] 05:31:54,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1527674386] 05:31:54,499 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:31:54,499 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,500 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 05:31:54,508 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]]} 05:31:54,508 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 05:31:54,508 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} 05:31:54,508 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,508 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:31:54,509 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]]} 05:31:54,509 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 05:31:54,509 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} 05:31:54,509 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:31:54,510 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]]} 05:31:54,510 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 05:31:54,510 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} 05:31:54,513 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:31:54,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-556810343] 05:31:54,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-413106731] 05:31:54,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-1133372368] 05:31:54,517 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:31:54,517 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,518 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]]} 05:31:54,518 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,518 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:31:54,518 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:31:54,518 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:31:54,518 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:31:54,518 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} 05:31:54,519 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:31:54,519 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:31:54,520 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:31:54,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#871944183] 05:31:54,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1522879210] 05:31:54,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#2054618222] 05:31:54,523 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:31:54,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,524 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:31:54,524 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 05:31:54,524 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 05:31:54,529 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:31:54,530 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#1005059515] 05:31:54,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1170008821] 05:31:54,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-353356776] 05:31:54,543 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:31:54,545 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,546 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 05:31:54,547 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]]} 05:31:54,547 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,548 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:31:54,548 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:31:54,548 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:31:54,548 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:31:54,548 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} 05:31:54,548 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,548 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:31:54,549 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:31:54,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#446404952] 05:31:54,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#2119933058] 05:31:54,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-24669148] 05:31:54,565 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:31:54,566 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,567 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 05:31:54,567 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]]} 05:31:54,568 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 05:31:54,568 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} 05:31:54,568 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1592744298] 05:31:54,579 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-331110619] 05:31:54,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#926999418] 05:31:54,582 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 05:31:54,583 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:31:54,583 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:31:54,583 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [06/25/2025 17:31:54.583] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@f88ad26 [INFO] [pekkoDeadLetter][06/25/2025 17:31:54.583] [test-pekko.actor.default-dispatcher-11] [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'. 05:31:54,583 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:31:54,589 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:31:54,590 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:31:54,590 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:31:54,590 PM [test-pekko.actor.default-dispatcher-15] [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 05:31:54,594 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:31:54,594 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 05:31:54,594 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@28e1b32f 05:31:54,595 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]]} 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:31:54,595 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} 05:31:54,595 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 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:31:54,595 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:31:54,596 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] 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:31:54,596 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 05:31:54,596 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d595045] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C328A-238EEE29.tmp [WARN] [06/25/2025 17:31:54.596] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 17:31:54.596] [test-pekko.actor.default-dispatcher-15] [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'. 05:31:54,597 PM [test-pekko.actor.default-dispatcher-15] [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'. 05:31:54,600 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d595045] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C328A-238EEE29.v1 05:31:54,600 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d595045] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C328A-238EEE29.v1 05:31:54,600 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d595045] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:31:54,600 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d595045] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T17:31:54.596569641Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C328A-238EEE29.v1, size=701, entryCompress=NONE, stateCompress=NONE} 05:31:54,601 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-25T17:31:54.596569641Z 05:31:54,601 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 05:31:54,603 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:31:54,603 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 05:31:54,697 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C328A-238EEE29.v1 05:31:54,697 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:31:54,697 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T17:31:54.596569641Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2651308118161836715/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C328A-238EEE29.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 05:31:54,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-2109902244] 05:31:54,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1577701034] 05:31:54,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1580974921] 05:31:54,714 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:31:54,714 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:31:54,714 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:31:54,716 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:31:54,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,717 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 05:31:54,718 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]]} 05:31:54,718 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 05:31:54,718 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} 05:31:54,718 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:31:54,719 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1030711882] 05:31:54,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#737879894] 05:31:54,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1602020559] 05:31:54,731 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:31:54,731 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,731 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 05:31:54,732 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:31:54,732 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:31:54,732 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:31:54,732 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:31:54,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-1128915550] 05:31:54,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#2074300795] 05:31:54,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1977473989] 05:31:54,745 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:31:54,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,746 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 05:31:54,747 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]]} 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:31:54,747 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:31:54,747 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:31:54,747 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:31:54,748 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} 05:31:54,748 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:31:54,748 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:31:54,748 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:31:54,748 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:31:54,749 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:31:54,749 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:31:54,749 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:31:54,749 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:31:54,749 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:31:54,749 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:31:54,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#732958249] 05:31:54,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#32171752] 05:31:54,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1644084345] 05:31:54,763 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:31:54,763 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,764 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:31:54,764 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:31:54,765 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-2019800032] 05:31:54,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-813161755] 05:31:54,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-2137785170] 05:31:54,780 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:31:54,780 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,781 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:31:54,782 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:31:54,782 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:31:54,782 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:31:54,783 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 05:31:54,783 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]]} 05:31:54,783 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 05:31:54,783 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:54,784 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:31:54,784 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:31:54,784 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:31:54,784 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:31:54,784 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} 05:31:54,784 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:31:54,784 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:31:54,784 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:31:54,784 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:31:54,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1203956738] 05:31:54,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1741034172] 05:31:54,796 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#439479946] 05:31:54,799 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:31:54,800 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:54,801 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 05:31:54,801 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]]} 05:31:54,801 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 05:31:54,802 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} 05:31:54,802 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:31:54,802 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:31:54,802 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]]} 05:31:54,803 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 05:31:54,803 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} 05:31:54,803 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:31:54,803 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:31:54,804 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]]} 05:31:54,804 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 05:31:54,804 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} 05:31:54,804 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:31:54,804 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1632853250] 05:31:54,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1291723032] 05:31:54,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#238419838] 05:31:54,818 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:31:54,818 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,19 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:31:55,19 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.215:17355, Removed) 05:31:55,19 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:31:55,19 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:31:55,19 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:31:55,20 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:31:55,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#2007254658] 05:31:55,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1028360135] 05:31:55,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-1255396812] 05:31:55,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,34 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:31:55,235 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:31:55,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1980451193] 05:31:55,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-115665579] 05:31:55,249 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-155555172] 05:31:55,253 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:31:55,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,255 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 05:31:55,255 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:31:55,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-1372338473] 05:31:55,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#47639331] 05:31:55,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#305679858] 05:31:55,259 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:31:55,259 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,259 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]]} 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:31:55,260 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} 05:31:55,260 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:31:55,260 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:31:55,260 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:31:55,260 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:31:55,260 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:31:55,260 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:31:55,260 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:31:55,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:31:55,261 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:31:55,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:31:55,261 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:31:55,261 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:31:55,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1452307772] 05:31:55,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#134107206] 05:31:55,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-1238574616] 05:31:55,264 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:31:55,264 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,264 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:31:55,265 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:31:55,265 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:31:55,265 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:31:55,265 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]]} 05:31:55,265 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} 05:31:55,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1620909964] 05:31:55,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1755168654] 05:31:55,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1217443281] 05:31:55,268 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:31:55,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,268 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 05:31:55,268 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]]} 05:31:55,269 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:31:55,269 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:31:55,269 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:31:55,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-2140110997] 05:31:55,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-2025482608] 05:31:55,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-1354893466] 05:31:55,271 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/25/2025 17:31:55.271] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1fa91a4f [INFO] [pekkoDeadLetter][06/25/2025 17:31:55.272] [test-pekko.actor.default-dispatcher-11] [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'. 05:31:55,272 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:31:55,272 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:31:55,272 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:31:55,272 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:31:55,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:31:55,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:31:55,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:55,274 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 05:31:55,276 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:55,276 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:31:55,276 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@606f61f0 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:31:55,278 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 05:31:55,279 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 05:31:55,281 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:31:55,281 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:31:55,281 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:31:55,281 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 05:31:55,281 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 05:31:55,282 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:31:55,282 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:31:55,282 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:31:55,282 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 05:31:55,282 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d720440] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.tmp [WARN] [06/25/2025 17:31:55.282] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 17:31:55.283] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:31:55,283 PM [test-pekko.actor.default-dispatcher-15] [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'. 05:31:55,286 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d720440] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1 05:31:55,287 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d720440] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1 05:31:55,287 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d720440] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:31:55,287 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d720440] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T17:31:55.282102073Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:31:55,287 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-25T17:31:55.282102073Z 05:31:55,287 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 05:31:55,287 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:31:55,287 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 05:31:55,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1 05:31:55,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:31:55,383 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T17:31:55.282102073Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:31:55,385 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:31:55,395 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:31:55,395 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:31:55,397 PM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:31:55,397 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:31:55,397 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [06/25/2025 17:31:55.397] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@429abef0 05:31:55,397 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][06/25/2025 17:31:55.397] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:31:55,399 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:55,399 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1 05:31:55,399 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:31:55,399 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T17:31:55.282102073Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6209292256395222295/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C328B-10D08939.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:31:55,399 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:31:55,400 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-25T17:31:55.282102073Z 05:31:55,400 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:55,400 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 159.7 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 05:31:55,400 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 05:31:55,400 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 05:31:55,401 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 693.9 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 05:31:55,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 05:31:55,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:31:55,401 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@40f81c95 05:31:55,401 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-1290191197] 05:31:55,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1850852991] 05:31:55,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#399538563] 05:31:55,412 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:31:55,412 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:31:55,412 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:31:55,416 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:31:55,416 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:55,716 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:31:55,846 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:31:55,846 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:31:56,97 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:31:56,297 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:31:56,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#963722273] 05:31:56,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-1439027397] 05:31:56,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-158497652] 05:31:56,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,313 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:31:56,313 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:31:56,313 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:31:56,313 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:31:56,313 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:31:56,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-1535741264] 05:31:56,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-378716595] 05:31:56,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#496310313] 05:31:56,327 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,329 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 05:31:56,329 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:31:56,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#670997778] 05:31:56,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#789228173] 05:31:56,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-1265029304] 05:31:56,345 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,346 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]]} 05:31:56,347 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:31:56,347 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:31:56,347 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:31:56,347 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:31:56,347 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:31:56,347 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} 05:31:56,347 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:31:56,347 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:31:56,348 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:31:56,348 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:31:56,348 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:31:56,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#2101629234] 05:31:56,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1325295768] 05:31:56,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-531352381] 05:31:56,362 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,365 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 05:31:56,367 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:31:56,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1553167042] 05:31:56,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#1832090438] 05:31:56,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-207708024] 05:31:56,380 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,381 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 05:31:56,382 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 05:31:56,382 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} 05:31:56,383 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:31:56,384 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 05:31:56,384 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:31:56,384 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:31:56,384 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. 05:31:56,385 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 05:31:56,385 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 05:31:56,386 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:31:56,386 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:31:56,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#482344240] 05:31:56,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-323027568] 05:31:56,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-2108312751] 05:31:56,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:31:56,400 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:31:56,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,401 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:31:56,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:31:56,401 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:31:56,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:31:56,401 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:31:56,402 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1028591268] 05:31:56,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#1339473680] 05:31:56,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#266690229] 05:31:56,414 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,415 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:31:56,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1076474212] 05:31:56,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-685209650] 05:31:56,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#794719510] 05:31:56,429 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:31:56,431 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 05:31:56,431 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:31:56,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#-1487105086] 05:31:56,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#-2143469936] 05:31:56,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#1998886878] [INFO] [06/25/2025 17:31:56.444] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:31:56,444 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/25/2025 17:31:56.445] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.215:17355) [INFO] [pekkoDeadLetter][06/25/2025 17:31:56.445] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-193100499] 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'. 05:31:56,445 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#-193100499] 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'. 05:31:56,446 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - Exiting completed 05:31:56,446 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - Shutting down... [INFO] [06/25/2025 17:31:56.446] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - Exiting completed 05:31:56,446 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.215:17355] - Successfully shut down [INFO] [06/25/2025 17:31:56.446] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - Shutting down... [INFO] [06/25/2025 17:31:56.446] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.215:17355] - Successfully shut down [INFO] [06/25/2025 17:31:56.447] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.215:17355/system/remoting-terminator] Shutting down remote daemon. 05:31:56,447 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/25/2025 17:31:56.448] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.215:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 05:31:56,448 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.