[DEBUG] [08/11/2025 14:58:48.087] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:58:48,87 PM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/11/2025 14:58:48.087] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/11/2025 14:58:48.087] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/11/2025 14:58:48.098] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.254:17355] with UID [-4343658112656192525] 02:58:48,98 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.254:17355] with UID [-4343658112656192525] 02:58:48,100 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/11/2025 14:58:48.099] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/11/2025 14:58:48.101] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/11/2025 14:58:48.101] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - Started up successfully [INFO] [08/11/2025 14:58:48.102] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/11/2025 14:58:48.102] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:58:48,118 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:58:48,118 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - Started up successfully 02:58:48,118 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:58:48,118 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:58:48,119 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:58:48,119 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,210 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:58:48,211 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:48,211 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:48,211 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:48,212 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:58:48,212 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:58:48,212 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:58:48,212 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:58:48,215 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:58:48,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior390#-635719310] 02:58:48,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower391#-392353994] 02:58:48,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader392#-586681618] 02:58:48,229 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:58:48,229 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,231 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:58:48,231 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:58:48,232 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:58:48,232 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:58:48,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior393#-795532961] 02:58:48,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower394#701514085] 02:58:48,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader395#-624530677] 02:58:48,245 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:58:48,245 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,246 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:58:48,246 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:48,246 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:48,246 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:48,247 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:58:48,247 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:58:48,247 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:58:48,248 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:58:48,249 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:58:48,250 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:58:48,250 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:58:48,251 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:58:48,251 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:58:48,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior396#-685998413] 02:58:48,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower397#1614946145] 02:58:48,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader398#-1932561703] 02:58:48,263 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,264 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:58:48,265 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#427903826] 02:58:48,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower400#-432732085] 02:58:48,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader401#1220150236] 02:58:48,277 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:58:48,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,278 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:58:48,279 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:58:48,279 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:48,279 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:48,279 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:48,279 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:48,279 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:48,280 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:58:48,280 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,280 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:58:48,282 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:58:48,282 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior402#-1975252851] 02:58:48,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower403#-1375595167] 02:58:48,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader404#2085772040] 02:58:48,295 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:58:48,295 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,296 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:58:48,297 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:48,297 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:58:48,297 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:58:48,297 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:48,297 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:58:48,297 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:58:48,297 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:48,297 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:58:48,297 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:48,297 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:48,297 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:58:48,297 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:58:48,298 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:58:48,298 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:48,298 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:58:48,298 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:58:48,298 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:58:48,298 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:58:48,298 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:58:48,298 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:58:48,299 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:58:48,299 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:58:48,299 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:48,299 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:48,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#89327236] 02:58:48,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower406#-350807796] 02:58:48,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader407#544156714] 02:58:48,312 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:58:48,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,313 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:58:48,314 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:58:48,314 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:58:48,315 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:58:48,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior408#1682913598] 02:58:48,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower409#1471063036] 02:58:48,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader410#1498417910] 02:58:48,329 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,331 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#1554579193] 02:58:48,342 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower412#908960670] 02:58:48,342 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader413#-2000297633] 02:58:48,344 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:58:48,344 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,344 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:58:48,345 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:58:48,346 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:58:48,346 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:48,346 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:48,346 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:48,346 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:48,346 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:48,346 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:58:48,346 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,346 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:58:48,346 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:58:48,346 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:58:48,347 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:58:48,347 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior414#1810889060] 02:58:48,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower415#1915206922] 02:58:48,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader416#917819566] 02:58:48,360 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/11/2025 14:58:48.362] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7a21aeb0 [INFO] [pekkoDeadLetter][08/11/2025 14:58:48.362] [test-pekko.actor.default-dispatcher-13] [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:58:48,363 PM [test-pekko.actor.default-dispatcher-13] [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'. 02:58:48,363 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:58:48,363 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:58:48,363 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:58:48,364 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:58:48,364 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:58:48,364 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 02:58:48,364 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 02:58:48,364 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:58:48,366 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:58:48,366 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:48,366 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:48,367 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:58:48,367 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:48,367 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:58:48,442 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.tmp 02:58:48,486 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:48.442732378Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 44.77 ms, resetting timer for the next recovery snapshot 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 231.2 μs with journalIndex=1 02:58:48,487 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:58:48,489 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 02:58:48,589 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1 02:58:48,592 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:48,592 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:48,592 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:48,592 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:48.442732378Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:48,592 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:58:48,593 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 228.6 ms 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:58:48,593 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:58:48,636 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 02:58:48,636 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 02:58:48,636 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 43.52 ms 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:58:48,637 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 9.321 μs 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@236d2417} 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 02:58:48,637 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:58:48,637 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:58:48,637 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 259.2 μs 02:58:48,637 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 02:58:48,637 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-25FCB5B2.tmp 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@236d2417} 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 43.97 ms 02:58:48,637 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [08/11/2025 14:58:48.637] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 02:58:48,638 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/11/2025 14:58:48.637] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:58:48,663 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-25FCB5B2.v1 02:58:48,663 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-25FCB5B2.v1 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:48.442732378Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-1A638F5A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T14:58:48.637318578Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-25FCB5B2.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:58:48,664 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d198889] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:58:48,664 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:58:48,664 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-11T14:58:48.637318578Z 02:58:48,664 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 02:58:48,665 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:58:48,665 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 27.76 ms 02:58:48,665 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 02:58:48,665 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 02:58:48,665 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:58:48,665 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 277.5 μs 02:58:48,665 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:58:48,665 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:58:48,795 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-25FCB5B2.v1 02:58:48,795 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:48,795 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:48,795 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:48,795 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T14:58:48.637318578Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10751399727283458060/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0528-25FCB5B2.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:48,800 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior417#-863831713] 02:58:48,803 PM [test-pekko.actor.default-dispatcher-4] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 02:58:48,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower418#250059490] 02:58:48,811 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader419#1018335946] 02:58:48,811 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:58:48,811 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#835,testCaptureSnapshotOnLastEntryInAppendEntries-writer-128]/waiting 02:58:48,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 146.3 ms 02:58:48,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 36.54 μs 02:58:48,811 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 02:58:48,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:58:48,812 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:58:48,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:48,812 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:48,814 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-1269890848] 02:58:48,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-2048946473] 02:58:48,827 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-1464435339] 02:58:48,829 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:58:48,829 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,830 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:58:48,830 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:58:48,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#811567203] 02:58:48,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#162873809] 02:58:48,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-1404273037] 02:58:48,844 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:58:48,844 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,844 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:58:48,845 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:58:48,845 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:48,846 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:48,846 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:48,846 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:58:48,846 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:48,846 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:58:48,846 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,846 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:58:48,846 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:58:48,847 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1334783445] 02:58:48,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-150252848] 02:58:48,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1490519061] 02:58:48,860 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:58:48,860 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,861 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:58:48,862 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:58:48,862 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:58:48,862 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:58:48,863 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,863 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:58:48,863 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:58:48,864 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:58:48,864 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:58:48,864 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:58:48,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-347535801] 02:58:48,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#742256699] 02:58:48,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1664077889] 02:58:48,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,879 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1206796139] 02:58:48,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#84551556] 02:58:48,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1245591422] 02:58:48,895 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:58:48,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,896 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:58:48,896 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:58:48,896 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:58:48,897 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:58:48,897 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,897 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:58:48,898 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:58:48,898 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:58:48,898 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:58:48,898 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:58:48,899 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:58:48,899 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:58:48,900 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:58:48,900 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:58:48,902 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#616567890] 02:58:48,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#956948103] 02:58:48,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#2112481638] 02:58:48,916 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:58:48,916 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,918 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:58:48,918 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:48,918 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:58:48,919 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:58:48,919 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:58:48,919 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:58:48,919 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:58:48,919 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:58:48,919 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:58:48,920 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:58:48,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1989080830] 02:58:48,931 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1473415685] 02:58:48,931 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1941015113] 02:58:48,933 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:58:48,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,936 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:58:48,937 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader443 02:58:48,937 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader443 02:58:48,939 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:58:48,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1842087750] 02:58:48,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-54998925] 02:58:48,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#467273486] 02:58:48,952 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:58:48,953 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,953 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:58:48,954 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:58:48,955 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:48,955 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:48,955 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:48,955 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:48,955 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:48,955 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:58:48,955 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,955 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:58:48,956 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:58:48,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1436719868] 02:58:48,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#532558846] 02:58:48,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-391862779] 02:58:48,970 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:58:48,970 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:48,971 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:58:48,971 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:58:48,972 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:58:48,972 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:58:48,972 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:48,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-1663486964] 02:58:48,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#183423933] 02:58:48,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#647073097] 02:58:48,985 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 02:58:48,986 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [08/11/2025 14:58:48.986] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@24896117 [INFO] [pekkoDeadLetter][08/11/2025 14:58:48.986] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:58:48,987 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:58:48,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:58:48,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:58:48,987 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 02:58:48,988 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:58:48,988 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 02:58:48,988 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 02:58:48,988 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:58:48,989 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:58:48,989 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:48,989 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:48,989 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:58:48,989 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:58:48,989 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 02:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 02:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:58:49,7 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-00720AF6.tmp 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-00720AF6.v1 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-00720AF6.v1 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:49.007473910Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-00720AF6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:58:49,48 PM [test-pekko.actor.default-dispatcher-4] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 41.56 ms, resetting timer for the next recovery snapshot 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 244.3 μs with journalIndex=1 02:58:49,49 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:58:49,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:58:49,51 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:58:49,51 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:58:49,51 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:58:49,50 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 62.66 ms 02:58:49,51 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 8.146 ms 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@508d0d85} 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 8.640 μs 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@508d0d85} 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 211.4 μs 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@508d0d85} 02:58:49,59 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-038C2A5D.tmp 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 8.523 ms 02:58:49,59 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) [WARN] [08/11/2025 14:58:49.059] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 14:58:49.060] [test-pekko.actor.default-dispatcher-4] [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:58:49,60 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:58:49,118 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-038C2A5D.v1 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-038C2A5D.v1 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-00720AF6.v1 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:49.007473910Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-00720AF6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T14:58:49.059517533Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-038C2A5D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 02:58:49,119 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d620918] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:58:49,119 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:58:49,119 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-11T14:58:49.059517533Z 02:58:49,120 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 02:58:49,120 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:58:49,120 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 60.62 ms 02:58:49,120 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 02:58:49,120 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 02:58:49,120 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:58:49,120 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 289.4 μs 02:58:49,120 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:58:49,120 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:58:49,201 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-038C2A5D.v1 02:58:49,202 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:58:49,202 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:49,202 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:49,202 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T14:58:49.059517533Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15228336230851535056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0529-038C2A5D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:49,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-899894569] 02:58:49,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1853558136] 02:58:49,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-1629770853] 02:58:49,215 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:58:49,216 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#841,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129]/waiting 02:58:49,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 95.76 ms 02:58:49,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 34.05 μs 02:58:49,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 02:58:49,216 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:58:49,216 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:58:49,216 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:58:49,216 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:58:49,219 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:58:49,219 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,220 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:58:49,221 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:58:49,221 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:58:49,222 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:58:49,222 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:58:49,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#273425446] 02:58:49,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#889442407] 02:58:49,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1902212916] 02:58:49,236 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:58:49,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,238 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:58:49,239 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:58:49,240 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:58:49,240 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:58:49,241 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:58:49,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1741914170] 02:58:49,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-266131202] 02:58:49,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1973779186] 02:58:49,255 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:58:49,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,256 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:58:49,257 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:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:58:49,257 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:58:49,257 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:58:49,257 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:58:49,257 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:58:49,258 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:58:49,258 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:58:49,258 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:49,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:49,258 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:58:49,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:58:49,258 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:49,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:49,258 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:58:49,258 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:58:49,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-369205982] 02:58:49,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1091545544] 02:58:49,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1317196317] 02:58:49,271 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:58:49,272 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,273 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:58:49,273 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:58:49,273 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#1042325061] 02:58:49,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1200116717] 02:58:49,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#114305322] 02:58:49,276 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:58:49,276 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,277 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:58:49,277 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:49,277 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:49,277 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:49,278 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:58:49,278 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:58:49,278 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:58:49,279 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:49,279 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:58:49,279 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:58:49,279 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:58:49,279 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:58:49,279 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:58:49,279 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:58:49,279 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:58:49,279 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:49,279 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:49,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1074369361] 02:58:49,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-2102779553] 02:58:49,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-1826712214] 02:58:49,282 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:58:49,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,287 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:58:49,287 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:58:49,287 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:58:49,287 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:58:49,287 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:49,287 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:58:49,288 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:58:49,288 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:58:49,288 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:58:49,288 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:58:49,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:58:49,289 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:58:49,289 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:58:49,289 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:58:49,289 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:58:49,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1586956418] 02:58:49,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#276291343] 02:58:49,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#1669471841] 02:58:49,293 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:58:49,293 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,495 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:58:49,495 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.254:17355, Removed) 02:58:49,495 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:58:49,495 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:58:49,495 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:58:49,495 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:58:49,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-851549468] 02:58:49,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1943311230] 02:58:49,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#641006416] 02:58:49,510 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,510 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:58:49,661 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:58:49,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-1175987102] 02:58:49,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#631704018] 02:58:49,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1832193544] 02:58:49,675 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:58:49,676 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,678 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:58:49,678 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:58:49,679 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-179086320] 02:58:49,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-1922728308] 02:58:49,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1089157098] 02:58:49,694 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:58:49,695 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,696 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:58:49,696 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:49,696 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:58:49,696 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:58:49,696 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:58:49,696 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:58:49,696 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:58:49,696 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:58:49,697 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:58:49,697 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:58:49,697 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:49,697 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:49,697 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:58:49,697 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:58:49,697 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:49,697 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:49,698 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:58:49,698 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:58:49,698 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:58:49,698 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:58:49,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-579624874] 02:58:49,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#1900779063] 02:58:49,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1112404773] 02:58:49,712 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:58:49,713 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,713 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:58:49,713 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:49,714 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:49,714 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:49,715 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:58:49,716 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:58:49,716 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1777951218] 02:58:49,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#939769292] 02:58:49,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1385219774] 02:58:49,729 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:58:49,730 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:49,730 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:58:49,731 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:58:49,731 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:49,731 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:58:49,732 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:58:49,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-848337514] 02:58:49,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#895289323] 02:58:49,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-477379147] 02:58:49,745 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 02:58:49,747 PM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:58:49,747 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:49,747 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:49,748 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:58:49,748 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:58:49,748 PM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 02:58:49,749 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:58:49,749 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands [WARN] [08/11/2025 14:58:49.749] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4d3fc730 [INFO] [pekkoDeadLetter][08/11/2025 14:58:49.749] [test-pekko.actor.default-dispatcher-4] [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:58:49,749 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,751 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:58:49,751 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:49,751 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:49,751 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:58:49,751 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:49,751 PM [test-pekko.actor.default-dispatcher-12] [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:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 02:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 02:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 02:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:58:49,755 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.tmp 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:49.755380501Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 1.882 ms, resetting timer for the next recovery snapshot 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 110.3 μs with journalIndex=1 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:58:49,757 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 02:58:49,858 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1 02:58:49,858 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:49,858 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:49,859 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:49,859 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:49.755380501Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:58:49,859 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,859 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 110.8 ms 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:58:49,860 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 02:58:49,865 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 02:58:49,865 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 02:58:49,865 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 5.681 ms 02:58:49,865 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 6.970 μs 02:58:49,865 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:58:49,865 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@299bc7bd} 02:58:49,865 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:58:49,865 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@299bc7bd} 02:58:49,865 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 02:58:49,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 02:58:49,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 02:58:49,866 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 02:58:49,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.007 ms 02:58:49,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:49,866 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:58:49,866 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,866 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:58:49,866 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:58:49,866 PM [test-pekko.actor.default-dispatcher-4] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:58:49,867 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:58:49,867 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 02:58:49,867 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d7d98@299bc7bd} 02:58:49,867 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.tmp 02:58:49,867 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.564 ms [WARN] [08/11/2025 14:58:49.867] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 14:58:49.867] [test-pekko.actor.default-dispatcher-4] [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:58:49,868 PM [test-pekko.actor.default-dispatcher-4] [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:58:49,869 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1 02:58:49,869 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1 02:58:49,869 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:49,869 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:49,869 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T14:58:49.755380501Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-2D063115.v1, size=419, entryCompress=NONE, stateCompress=NONE} 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T14:58:49.867017361Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d186581] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:58:49,870 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:58:49,870 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-11T14:58:49.867017361Z 02:58:49,870 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 02:58:49,870 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.763 ms 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 214.8 μs 02:58:49,870 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:58:49,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:50,62 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:50,62 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:50,62 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1 02:58:50,63 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:50,63 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T14:58:49.867017361Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:50,65 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:58:50,66 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#844,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130]/waiting 02:58:50,66 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 195.5 ms 02:58:50,66 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 37.31 μs 02:58:50,66 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:58:50,66 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:50,66 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:50,66 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:50,66 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:50,68 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [WARN] [08/11/2025 14:58:50.068] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@65d08804 02:58:50,68 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:50,68 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:50,68 PM [test-pekko.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/11/2025 14:58:50.068] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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:58:50,69 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 02:58:50,70 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 02:58:50,70 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 02:58:50,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:58:50,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T14:58:49.867017361Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17811269062385894204/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0529-33ADA291.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:50,72 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-11T14:58:49.867017361Z 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 167.6 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 267.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 183.8 μs with journalIndex=4 02:58:50,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 02:58:50,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-314018880] 02:58:50,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1610067550] 02:58:50,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#454137675] 02:58:50,75 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:58:50,75 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#849,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131]/waiting 02:58:50,75 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.945 ms 02:58:50,75 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 30.31 μs 02:58:50,75 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:58:50,75 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:50,75 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:50,75 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:50,75 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:50,78 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:58:50,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:50,378 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:58:50,508 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:58:50,508 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:58:50,759 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:58:50,959 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:58:50,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#310290280] 02:58:50,971 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1542911584] 02:58:50,971 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1468086985] 02:58:50,974 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:50,975 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:58:50,975 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:58:50,975 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:58:50,975 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:58:50,975 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:58:50,976 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#1345355190] 02:58:50,986 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#996582952] 02:58:50,987 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#1370845212] 02:58:50,989 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:50,991 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:58:50,993 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:58:50,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-239861641] 02:58:50,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1947012804] 02:58:50,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1653586900] 02:58:50,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:50,998 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:58:50,999 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:50,999 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:58:50,999 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:58:50,999 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:58:50,999 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:58:50,999 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:58:50,999 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:58:50,999 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:58:50,999 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:50,999 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:50,999 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:58:50,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1721280039] 02:58:51,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-861633289] 02:58:51,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1263627991] 02:58:51,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:51,2 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:58:51,3 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:58:51,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1097687961] 02:58:51,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-244552890] 02:58:51,5 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#975271218] 02:58:51,7 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:51,7 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:58:51,8 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:58:51,8 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:58:51,8 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:58:51,9 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:58:51,9 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:58:51,9 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:58:51,9 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:58:51,9 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:58:51,11 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:58:51,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:58:51,12 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:58:51,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-1312102983] 02:58:51,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1409014454] 02:58:51,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-659399905] 02:58:51,15 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:51,16 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:51,16 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:51,16 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:51,17 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:58:51,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:58:51,17 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:58:51,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:58:51,17 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:58:51,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-952894302] 02:58:51,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-531931162] 02:58:51,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-1431817862] 02:58:51,22 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:51,23 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:58:51,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#364643798] 02:58:51,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1748014521] 02:58:51,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#622018251] 02:58:51,26 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:51,27 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:58:51,27 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:58:51,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#214237817] 02:58:51,28 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1820597947] 02:58:51,28 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#134081240] [INFO] [08/11/2025 14:58:51.028] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:58:51,29 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/11/2025 14:58:51.031] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.254:17355) [INFO] [08/11/2025 14:58:51.030] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - Exiting completed [INFO] [08/11/2025 14:58:51.030] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - Shutting down... [INFO] [08/11/2025 14:58:51.030] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.254:17355] - Successfully shut down 02:58:51,31 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - Exiting completed 02:58:51,31 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - Shutting down... 02:58:51,31 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.254:17355] - Successfully shut down 02:58:51,31 PM [test-pekko.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/11/2025 14:58:51.031] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.254:17355/system/remoting-terminator] Shutting down remote daemon. 02:58:51,31 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [WARN] [08/11/2025 14:58:51.031] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/deadLetterListener] received dead letter: UnhandledMessage(Leave(pekko://test@10.30.170.254:17355),Actor[pekko://test/deadLetters],Actor[pekko://test/system/cluster/core/daemon#-646326061]) [INFO] [08/11/2025 14:58:51.031] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.254:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 14:58:51.033] [test-pekko.remote.default-remote-dispatcher-6] [pekko://test@10.30.170.254:17355/system/remoting-terminator] Remoting shut down. 02:58:51,33 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/11/2025 14:58:51.033] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger