[DEBUG] [06/26/2025 14:33:17.991] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:33:17,993 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/26/2025 14:33:17.993] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/26/2025 14:33:17.994] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/26/2025 14:33:18.007] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.2:17355] with UID [-3028491450414183329] 02:33:18,8 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.2:17355] with UID [-3028491450414183329] [INFO] [06/26/2025 14:33:18.008] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - Starting up, Pekko version [1.0.3] ... 02:33:18,8 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/26/2025 14:33:18.010] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:33:18,11 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/26/2025 14:33:18.011] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - Started up successfully 02:33:18,11 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - Started up successfully [INFO] [06/26/2025 14:33:18.011] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/26/2025 14:33:18.011] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:33:18,12 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:33:18,12 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:33:18,22 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:33:18,22 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,114 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:33:18,114 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:33:18,114 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:33:18,115 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:33:18,116 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:33:18,117 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:33:18,117 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:33:18,117 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:33:18,121 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:33:18,122 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#390898969] 02:33:18,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#631689683] 02:33:18,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1581322490] 02:33:18,135 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:33:18,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,137 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]]} 02:33:18,138 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 02:33:18,138 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} 02:33:18,139 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:33:18,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1852539078] 02:33:18,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#994812756] 02:33:18,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-520499265] 02:33:18,152 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:33:18,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,153 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:33:18,153 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:33:18,153 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:33:18,153 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:33:18,154 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:33:18,154 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:33:18,154 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:33:18,155 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:33:18,156 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 02:33:18,157 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]]} 02:33:18,157 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 02:33:18,157 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} 02:33:18,158 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:33:18,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1721038397] 02:33:18,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#295422267] 02:33:18,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-343796722] 02:33:18,171 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,171 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:33:18,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-230180822] 02:33:18,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1810784816] 02:33:18,183 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-776853385] 02:33:18,185 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:33:18,185 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,186 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 02:33:18,187 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]]} 02:33:18,187 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,187 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:33:18,188 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:33:18,188 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:33:18,188 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:33:18,188 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} 02:33:18,188 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,188 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:33:18,190 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:33:18,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-160378195] 02:33:18,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-944200689] 02:33:18,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#203035500] 02:33:18,195 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:33:18,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,196 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]]} 02:33:18,196 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,196 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:33:18,196 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:33:18,196 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:33:18,196 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:33:18,196 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} 02:33:18,196 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:33:18,196 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:33:18,196 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:33:18,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:33:18,196 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:33:18,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:33:18,197 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]]} 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:33:18,197 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} 02:33:18,197 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:33:18,197 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:33:18,197 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:33:18,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:33:18,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#2024810169] 02:33:18,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-2007764995] 02:33:18,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1832379559] 02:33:18,199 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:33:18,200 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,200 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 02:33:18,200 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 02:33:18,200 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} 02:33:18,201 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:33:18,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#373711710] 02:33:18,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#1808460907] 02:33:18,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1499803334] 02:33:18,202 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#1784360161] 02:33:18,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-486249654] 02:33:18,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#677463304] 02:33:18,206 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:33:18,206 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,206 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:33:18,207 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 02:33:18,207 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]]} 02:33:18,207 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,207 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:33:18,207 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:33:18,207 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:33:18,207 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:33:18,207 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} 02:33:18,207 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,207 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:33:18,207 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:33:18,208 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:33:18,208 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:33:18,208 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-1639327286] 02:33:18,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#1978794900] 02:33:18,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1938919445] 02:33:18,211 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/26/2025 14:33:18.212] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@203aadc9 02:33:18,213 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/26/2025 14:33:18.213] [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'. 02:33:18,215 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:33:18,215 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:33:18,215 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:33:18,220 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:33:18,220 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:33:18,220 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:18,220 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:33:18,223 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:18,223 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:33:18,223 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@11dc15b6 02:33:18,223 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 02:33:18,223 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:33:18,223 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:33:18,224 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:33:18,225 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 02:33:18,225 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d547962] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D5A2E-0D7543EC.tmp [WARN] [06/26/2025 14:33:18.226] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 02:33:18,226 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/26/2025 14:33:18.226] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:18,231 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d547962] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D5A2E-0D7543EC.v1 02:33:18,231 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d547962] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D5A2E-0D7543EC.v1 02:33:18,232 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d547962] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:33:18,232 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d547962] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T14:33:18.225788908Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D5A2E-0D7543EC.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:33:18,232 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-26T14:33:18.225788908Z 02:33:18,232 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 02:33:18,232 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:33:18,232 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 02:33:18,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D5A2E-0D7543EC.v1 02:33:18,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:33:18,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T14:33:18.225788908Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10591802624615167791/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D5A2E-0D7543EC.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:33:18,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1168848521] 02:33:18,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-101475262] 02:33:18,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#803087675] 02:33:18,380 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:33:18,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:33:18,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:33:18,384 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,385 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1840476401] 02:33:18,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#40464924] 02:33:18,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1020504219] 02:33:18,388 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:33:18,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,389 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 02:33:18,389 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:33:18,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#470340274] 02:33:18,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1170127085] 02:33:18,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1558815242] 02:33:18,391 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:33:18,391 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,392 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 02:33:18,392 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]]} 02:33:18,392 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,392 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:33:18,392 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:33:18,392 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:33:18,392 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:33:18,392 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} 02:33:18,392 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,392 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:33:18,392 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:33:18,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#12263205] 02:33:18,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1560737429] 02:33:18,394 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1535146398] 02:33:18,395 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:33:18,395 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,395 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 02:33:18,396 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]]} 02:33:18,396 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 02:33:18,396 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} 02:33:18,396 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,396 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:33:18,397 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]]} 02:33:18,397 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 02:33:18,397 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} 02:33:18,397 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:33:18,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#1217620244] 02:33:18,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#1813320407] 02:33:18,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-917258699] 02:33:18,399 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#731136649] 02:33:18,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1165513154] 02:33:18,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1492422533] 02:33:18,401 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:33:18,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,402 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 02:33:18,402 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]]} 02:33:18,402 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 02:33:18,402 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} 02:33:18,402 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,402 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:33:18,403 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]]} 02:33:18,403 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 02:33:18,403 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} 02:33:18,403 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:33:18,404 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]]} 02:33:18,404 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 02:33:18,404 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} 02:33:18,404 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:33:18,404 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#1859630242] 02:33:18,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#985845237] 02:33:18,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-309527088] 02:33:18,406 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:33:18,407 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,407 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]]} 02:33:18,407 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,407 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:33:18,407 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:33:18,407 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:33:18,407 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:33:18,408 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} 02:33:18,408 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:33:18,408 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:33:18,408 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:33:18,408 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-79731068] 02:33:18,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1494639361] 02:33:18,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1906293531] 02:33:18,410 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:33:18,410 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,411 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:33:18,412 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 02:33:18,412 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 02:33:18,413 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:33:18,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-337516648] 02:33:18,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1072035551] 02:33:18,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1390568927] 02:33:18,417 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:33:18,417 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,418 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 02:33:18,418 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]]} 02:33:18,418 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,418 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:33:18,418 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:33:18,418 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:33:18,418 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:33:18,418 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} 02:33:18,418 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,418 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:33:18,418 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:33:18,419 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#1246119096] 02:33:18,420 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-223898122] 02:33:18,420 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1589115897] 02:33:18,421 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:33:18,422 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,422 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 02:33:18,422 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]]} 02:33:18,422 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 02:33:18,423 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} 02:33:18,423 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-365903014] 02:33:18,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-1185909742] 02:33:18,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#711236206] 02:33:18,425 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/26/2025 14:33:18.426] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@3be7fe9f [INFO] [pekkoDeadLetter][06/26/2025 14:33:18.426] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:18,426 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:33:18,426 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:33:18,426 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:33:18,426 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:18,428 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:33:18,428 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:33:18,428 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:33:18,428 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1b81ef9b 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:33:18,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:33:18,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 02:33:18,432 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:33:18,432 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:33:18,432 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:33:18,432 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 02:33:18,432 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 02:33:18,432 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:33:18,433 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:33:18,433 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:33:18,433 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 02:33:18,433 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d200836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D5A2E-19CF7311.tmp [WARN] [06/26/2025 14:33:18.433] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 02:33:18,433 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/26/2025 14:33:18.433] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:18,435 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d200836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D5A2E-19CF7311.v1 02:33:18,435 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d200836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D5A2E-19CF7311.v1 02:33:18,435 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d200836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:33:18,435 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d200836] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T14:33:18.433025809Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D5A2E-19CF7311.v1, size=701, entryCompress=NONE, stateCompress=NONE} 02:33:18,435 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-26T14:33:18.433025809Z 02:33:18,435 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 02:33:18,436 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 02:33:18,436 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:33:18,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D5A2E-19CF7311.v1 02:33:18,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:33:18,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T14:33:18.433025809Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7945615444197928362/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D5A2E-19CF7311.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 02:33:18,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1463721308] 02:33:18,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1630262122] 02:33:18,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1700310171] 02:33:18,598 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:33:18,598 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:33:18,598 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:33:18,602 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:33:18,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,603 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 02:33:18,603 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]]} 02:33:18,603 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 02:33:18,603 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} 02:33:18,603 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:33:18,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1678465764] 02:33:18,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1652985390] 02:33:18,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#1727521606] 02:33:18,606 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:33:18,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,607 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 02:33:18,607 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:33:18,607 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:33:18,607 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:33:18,608 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:33:18,608 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#1616486141] 02:33:18,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#2084285336] 02:33:18,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#1919686415] 02:33:18,610 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:33:18,610 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,611 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 02:33:18,611 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]]} 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:33:18,611 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:33:18,611 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:33:18,611 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} 02:33:18,611 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:33:18,611 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:33:18,612 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:33:18,612 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:33:18,612 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:33:18,612 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:33:18,612 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:33:18,612 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:33:18,612 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:33:18,612 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:33:18,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1916710777] 02:33:18,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#941788411] 02:33:18,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1242387572] 02:33:18,614 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:33:18,614 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,614 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:33:18,614 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:33:18,615 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1143716821] 02:33:18,616 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-101140130] 02:33:18,616 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#415192454] 02:33:18,617 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:33:18,617 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,618 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:33:18,618 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:33:18,618 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:33:18,618 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:33:18,619 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 02:33:18,619 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]]} 02:33:18,619 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 02:33:18,619 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:18,620 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:33:18,620 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:33:18,620 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:33:18,620 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:33:18,620 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} 02:33:18,620 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:33:18,620 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:33:18,620 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:33:18,620 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:33:18,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-2054116858] 02:33:18,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#1819367149] 02:33:18,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#2131946960] 02:33:18,623 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:33:18,623 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,623 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 02:33:18,623 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]]} 02:33:18,624 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 02:33:18,624 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} 02:33:18,624 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:33:18,624 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:33:18,624 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]]} 02:33:18,624 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 02:33:18,625 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} 02:33:18,625 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:33:18,625 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:33:18,625 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]]} 02:33:18,625 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 02:33:18,625 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} 02:33:18,625 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:33:18,626 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#1574115323] 02:33:18,626 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#1754823432] 02:33:18,626 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#520297284] 02:33:18,628 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:33:18,628 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,828 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:33:18,828 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.171.2:17355, Removed) 02:33:18,828 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:33:18,828 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:33:18,828 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:33:18,828 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:33:18,829 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#163705502] 02:33:18,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1632826062] 02:33:18,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#1665703741] 02:33:18,833 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,833 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:33:18,985 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:33:18,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1135505746] 02:33:18,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#1559811244] 02:33:18,987 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#375966001] 02:33:18,990 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:33:18,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,992 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 02:33:18,992 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:33:18,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1474934518] 02:33:18,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1907512473] 02:33:18,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-2019438476] 02:33:18,996 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:33:18,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:18,997 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]]} 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:33:18,997 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} 02:33:18,997 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:33:18,997 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:33:18,997 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:33:18,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:33:18,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:33:18,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:33:18,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:33:18,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:33:18,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:33:18,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:33:18,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:33:18,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:33:18,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-2106189134] 02:33:18,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1608430156] 02:33:18,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1358182347] 02:33:19,1 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:33:19,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:19,2 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:33:19,2 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:33:19,2 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:33:19,2 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:33:19,2 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]]} 02:33:19,3 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} 02:33:19,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#999978375] 02:33:19,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-717735974] 02:33:19,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1762954488] 02:33:19,5 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:33:19,5 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:19,6 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 02:33:19,6 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]]} 02:33:19,6 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:33:19,6 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:33:19,7 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:33:19,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-679423660] 02:33:19,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#473538941] 02:33:19,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#511824555] 02:33:19,9 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/26/2025 14:33:19.010] [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@55c634e8 [INFO] [pekkoDeadLetter][06/26/2025 14:33:19.010] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:19,10 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:19,11 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:33:19,12 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:33:19,12 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:33:19,13 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:33:19,13 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:33:19,13 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:19,13 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:33:19,17 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:19,17 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:33:19,17 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@8c75820 02:33:19,17 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:33:19,18 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 02:33:19,19 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d315846] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.tmp [WARN] [06/26/2025 14:33:19.019] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/26/2025 14:33:19.019] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:19,19 PM [test-pekko.actor.default-dispatcher-14] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:19,21 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d315846] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1 02:33:19,22 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d315846] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1 02:33:19,22 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d315846] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:33:19,22 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d315846] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T14:33:19.019339042Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:33:19,22 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-26T14:33:19.019339042Z 02:33:19,22 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 02:33:19,22 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:33:19,22 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 02:33:19,170 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1 02:33:19,170 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:33:19,170 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T14:33:19.019339042Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:33:19,172 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:33:19,173 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:33:19,173 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:33:19,175 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:33:19,175 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:33:19,175 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [06/26/2025 14:33:19.175] [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@2ba5dd84 [INFO] [pekkoDeadLetter][06/26/2025 14:33:19.175] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:19,175 PM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:33:19,177 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:19,177 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1 02:33:19,177 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:33:19,177 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T14:33:19.019339042Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest869283017761024421/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D5A2F-01271722.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:33:19,177 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-26T14:33:19.019339042Z 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 115.0 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 449.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:33:19,178 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@74738d8d 02:33:19,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-217744468] 02:33:19,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#2002822832] 02:33:19,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1484604855] 02:33:19,180 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:33:19,180 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:33:19,180 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:33:19,183 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:33:19,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:19,483 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:33:19,613 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:33:19,614 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:33:19,864 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:33:20,64 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:33:20,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-951413366] 02:33:20,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-962019315] 02:33:20,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#1400658405] 02:33:20,69 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,70 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:33:20,70 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:33:20,70 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:33:20,70 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:33:20,71 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:33:20,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#158645838] 02:33:20,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#752288768] 02:33:20,72 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1281723876] 02:33:20,73 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,75 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 02:33:20,75 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:33:20,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1491279616] 02:33:20,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1610406008] 02:33:20,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#1116833705] 02:33:20,91 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,93 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]]} 02:33:20,93 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:33:20,93 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:33:20,93 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:33:20,93 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:33:20,93 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:33:20,93 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} 02:33:20,94 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:33:20,94 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:33:20,95 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:33:20,95 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:33:20,95 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:33:20,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#1317085082] 02:33:20,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1656872125] 02:33:20,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#474725764] 02:33:20,100 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,101 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 02:33:20,101 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:33:20,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#578182530] 02:33:20,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#2129725636] 02:33:20,112 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-1822460144] 02:33:20,113 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,114 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 02:33:20,114 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 02:33:20,115 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} 02:33:20,115 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:33:20,115 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 02:33:20,116 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:33:20,116 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:33:20,116 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. 02:33:20,116 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 02:33:20,117 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 02:33:20,117 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:33:20,118 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:33:20,118 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-1354020093] 02:33:20,129 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-1957255162] 02:33:20,129 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1848412604] 02:33:20,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:33:20,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:33:20,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,131 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:33:20,132 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:33:20,132 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:33:20,132 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:33:20,132 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:33:20,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#970471736] 02:33:20,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1181801778] 02:33:20,133 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1017279635] 02:33:20,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,135 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:33:20,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#1463834944] 02:33:20,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#1428715] 02:33:20,137 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#296020638] 02:33:20,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:33:20,139 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 02:33:20,139 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:33:20,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#498161944] 02:33:20,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1698193412] 02:33:20,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#188538994] [INFO] [06/26/2025 14:33:20.141] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:33:20,141 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/26/2025 14:33:20.142] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.2:17355) [INFO] [06/26/2025 14:33:20.142] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - Exiting completed [INFO] [06/26/2025 14:33:20.142] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - Shutting down... 02:33:20,142 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - Exiting completed 02:33:20,142 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - Shutting down... 02:33:20,142 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.2:17355] - Successfully shut down 02:33:20,142 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2011713060] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/26/2025 14:33:20.142] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.2:17355] - Successfully shut down [INFO] [pekkoDeadLetter][06/26/2025 14:33:20.142] [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#-2011713060] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/26/2025 14:33:20.145] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.2:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/26/2025 14:33:20.145] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.2:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:33:20,145 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:33:20,145 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/26/2025 14:33:20.147] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.2:17355/system/remoting-terminator] Remoting shut down. 02:33:20,147 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/26/2025 14:33:20.147] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger