[DEBUG] [08/11/2025 16:01:43.084] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:01:43,85 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/11/2025 16:01:43.085] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/11/2025 16:01:43.089] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/11/2025 16:01:43.101] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.120:17355] with UID [5435688981731207511] [INFO] [08/11/2025 16:01:43.101] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - Starting up, Pekko version [1.0.3] ... 04:01:43,103 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.120:17355] with UID [5435688981731207511] 04:01:43,103 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/11/2025 16:01:43.103] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/11/2025 16:01:43.103] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - Started up successfully 04:01:43,104 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:01:43,104 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - Started up successfully [INFO] [08/11/2025 16:01:43.104] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120: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 16:01:43.105] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:01:43,105 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:01:43,105 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:01:43,121 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:01:43,121 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,212 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:01:43,212 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:01:43,212 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:01:43,214 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:01:43,215 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:01:43,215 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:01:43,216 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:01:43,216 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:01:43,220 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:01:43,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior390#-1480566196] 04:01:43,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower391#1179934143] 04:01:43,233 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader392#-2066823743] 04:01:43,236 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:01:43,236 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,238 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]]} 04:01:43,239 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 04:01:43,239 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} 04:01:43,240 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:01:43,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior393#-414708060] 04:01:43,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower394#-1735383267] 04:01:43,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader395#1179504010] 04:01:43,253 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:01:43,253 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,254 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:01:43,254 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:01:43,254 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:01:43,254 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:01:43,255 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:01:43,255 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:01:43,255 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:01:43,256 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:01:43,257 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 04:01:43,258 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]]} 04:01:43,258 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 04:01:43,259 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} 04:01:43,259 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:01:43,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior396#-1887630998] 04:01:43,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower397#1594892822] 04:01:43,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader398#-1137617306] 04:01:43,272 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,273 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:01:43,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#-1331569789] 04:01:43,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower400#-178315356] 04:01:43,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader401#1620142509] 04:01:43,286 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:01:43,286 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,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 04:01:43,288 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]]} 04:01:43,288 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:43,288 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:01:43,289 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:01:43,289 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:01:43,289 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:01:43,289 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} 04:01:43,289 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,289 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:01:43,291 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:01:43,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior402#581183513] 04:01:43,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower403#1475332231] 04:01:43,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader404#-2000291953] 04:01:43,306 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:01:43,306 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,308 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]]} 04:01:43,308 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:43,308 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:01:43,308 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:01:43,308 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:01:43,308 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:01:43,309 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} 04:01:43,309 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:01:43,309 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:01:43,309 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:01:43,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:01:43,309 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:01:43,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:01:43,311 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]]} 04:01:43,311 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:01:43,311 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:01:43,311 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:01:43,311 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:01:43,311 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:01:43,311 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:01:43,312 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} 04:01:43,312 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:01:43,312 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:01:43,312 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:01:43,312 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:01:43,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#975649515] 04:01:43,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower406#341490102] 04:01:43,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader407#-2038040277] 04:01:43,326 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:01:43,327 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,327 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 04:01:43,328 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 04:01:43,330 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} 04:01:43,330 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:01:43,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior408#-871736963] 04:01:43,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower409#-1999296005] 04:01:43,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader410#-1737646673] 04:01:43,344 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#2110879400] 04:01:43,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower412#1707902139] 04:01:43,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader413#-265253828] 04:01:43,361 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:01:43,361 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,361 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:01:43,362 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 04:01:43,363 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]]} 04:01:43,363 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:43,363 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:01:43,363 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:01:43,363 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:01:43,363 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:01:43,364 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} 04:01:43,364 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,364 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:01:43,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:01:43,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:01:43,364 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:01:43,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior414#488762441] 04:01:43,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower415#-877357527] 04:01:43,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader416#-206327768] 04:01:43,377 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/11/2025 16:01:43.381] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@48c42b76 [INFO] [pekkoDeadLetter][08/11/2025 16:01:43.381] [test-pekko.actor.default-dispatcher-5] [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'. 04:01:43,382 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:43,383 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:01:43,383 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:01:43,384 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:01:43,384 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:01:43,384 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:01:43,384 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:01:43,385 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:01:43,385 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:01:43,389 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:01:43,389 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:01:43,389 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:01:43,389 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:01:43,389 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:43,390 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 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:01:43,392 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.tmp 04:01:43,396 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1 04:01:43,396 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1 04:01:43,396 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:01:43,396 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:01:43,396 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:01:43,396 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:43.392490208Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.644 ms, resetting timer for the next recovery snapshot 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 237.1 μs with journalIndex=1 04:01:43,397 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:01:43,398 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:01:43,499 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1 04:01:43,499 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:01:43,499 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:01:43,499 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:01:43,499 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:43.392490208Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:01:43,500 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]]} 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:01:43,500 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 115.6 ms 04:01:43,500 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} 04:01:43,500 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 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:01:43,500 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:01:43,501 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:01:43,503 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:01:43,503 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:01:43,503 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.176 ms 04:01:43,503 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:01:43,503 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 6.641 μs 04:01:43,503 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/0x00000007c08d6158@10353cd9} 04:01:43,503 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 04:01:43,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:01:43,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:01:43,504 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:01:43,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.054 ms 04:01:43,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:01:43,504 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:01:43,505 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] 04:01:43,505 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:01:43,505 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:01:43,505 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:01:43,505 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:01:43,505 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:01:43,505 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/0x00000007c08d6158@10353cd9} 04:01:43,505 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1E1CAF40.tmp 04:01:43,505 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.371 ms [WARN] [08/11/2025 16:01:43.505] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 04:01:43,505 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/11/2025 16:01:43.505] [test-pekko.actor.default-dispatcher-6] [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'. 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1E1CAF40.v1 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1E1CAF40.v1 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:43.392490208Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1764ECE0.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T16:01:43.505196352Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1E1CAF40.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:01:43,507 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d856159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:01:43,507 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:01:43,507 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-11T16:01:43.505196352Z 04:01:43,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:01:43,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:01:43,508 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.169 ms 04:01:43,508 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:01:43,508 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:01:43,508 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:01:43,508 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 261.5 μs 04:01:43,508 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:01:43,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:01:43,702 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1E1CAF40.v1 04:01:43,702 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:01:43,702 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:01:43,702 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:01:43,702 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T16:01:43.505196352Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10866142981791262863/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A13E7-1E1CAF40.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:01:43,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior417#-1152335953] 04:01:43,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower418#561503289] 04:01:43,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader419#-727701167] 04:01:43,716 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:01:43,716 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#838,testCaptureSnapshotOnLastEntryInAppendEntries-writer-128]/waiting 04:01:43,716 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 207.9 ms 04:01:43,716 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 24.39 μs 04:01:43,716 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:01:43,716 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:01:43,716 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:01:43,716 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:01:43,716 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:01:43,719 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-1428151429] 04:01:43,730 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1597443789] 04:01:43,730 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1017973167] 04:01:43,732 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:01:43,732 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,734 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 04:01:43,735 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:01:43,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-1943914902] 04:01:43,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#443619913] 04:01:43,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-103368022] 04:01:43,748 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:01:43,748 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,748 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 04:01:43,749 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]]} 04:01:43,749 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:43,749 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:01:43,749 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:01:43,749 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:01:43,749 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:01:43,750 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} 04:01:43,750 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,750 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:01:43,750 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:01:43,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1461340579] 04:01:43,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1389042047] 04:01:43,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#100262825] 04:01:43,763 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:01:43,763 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,764 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 04:01:43,765 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]]} 04:01:43,765 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 04:01:43,766 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} 04:01:43,766 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,766 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:01:43,767 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]]} 04:01:43,767 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 04:01:43,768 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} 04:01:43,768 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:01:43,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-907842237] 04:01:43,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#328219753] 04:01:43,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#2111434407] 04:01:43,782 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-1382801348] 04:01:43,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-1192961394] 04:01:43,794 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#1712577521] 04:01:43,796 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:01:43,796 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,797 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 04:01:43,797 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]]} 04:01:43,798 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 04:01:43,798 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} 04:01:43,799 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,799 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:01:43,800 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]]} 04:01:43,800 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 04:01:43,800 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} 04:01:43,800 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:01:43,801 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]]} 04:01:43,801 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 04:01:43,801 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} 04:01:43,802 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:01:43,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-759268967] 04:01:43,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1000383345] 04:01:43,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1763512211] 04:01:43,814 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:01:43,814 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,816 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]]} 04:01:43,816 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:43,816 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:01:43,816 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:01:43,816 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:01:43,816 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:01:43,816 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} 04:01:43,817 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:01:43,817 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:01:43,817 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:01:43,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#825695645] 04:01:43,828 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#887040259] 04:01:43,828 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-2010348504] 04:01:43,830 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:01:43,830 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,831 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:01:43,832 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader443 04:01:43,832 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader443 04:01:43,833 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:01:43,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-114247550] 04:01:43,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-313971545] 04:01:43,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-864433778] 04:01:43,846 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:01:43,846 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,847 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 04:01:43,848 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]]} 04:01:43,848 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:43,848 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:01:43,848 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:01:43,848 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:01:43,848 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:01:43,849 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} 04:01:43,849 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,849 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:01:43,849 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:01:43,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#408691078] 04:01:43,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1215698040] 04:01:43,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#490802137] 04:01:43,864 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:01:43,864 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:43,865 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 04:01:43,866 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]]} 04:01:43,866 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 04:01:43,866 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} 04:01:43,866 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:43,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-1055902735] 04:01:43,878 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-66483060] 04:01:43,878 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#103736747] 04:01:43,880 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 04:01:43,882 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [08/11/2025 16:01:43.882] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@44bfc5db [INFO] [pekkoDeadLetter][08/11/2025 16:01:43.882] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:43,882 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:01:43,883 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:01:43,883 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:01:43,883 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:01:43,884 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:01:43,884 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:01:43,884 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:01:43,884 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:01:43,885 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:01:43,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:01:43,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:01:43,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:01:43,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:01:43,886 PM [test-pekko.actor.default-dispatcher-6] [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 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:01:43,888 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-34F45BDC.tmp 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-34F45BDC.v1 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-34F45BDC.v1 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:43.888429532Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-34F45BDC.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.127 ms, resetting timer for the next recovery snapshot 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 177.8 μs with journalIndex=1 04:01:43,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [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]]} 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [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} 04:01:43,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 8.049 ms 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:01:43,892 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:01:43,896 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 04:01:43,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 04:01:43,896 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 3.669 ms 04:01:43,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:01:43,896 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08d6158@5d77ab5e} 04:01:43,896 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 6.851 μs 04:01:43,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:01:43,896 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08d6158@5d77ab5e} 04:01:43,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 04:01:43,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:01:43,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 04:01:43,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.020 ms 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:01:43,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08d6158@5d77ab5e} 04:01:43,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-35811EA1.tmp 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.957 ms 04:01:43,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) [WARN] [08/11/2025 16:01:43.898] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 16:01:43.898] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:43,898 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:43,899 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-35811EA1.v1 04:01:43,899 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-34F45BDC.v1 04:01:43,899 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-35811EA1.v1 04:01:43,899 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:01:43,899 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:01:43,899 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:43.888429532Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-34F45BDC.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T16:01:43.897654433Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-35811EA1.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d991266] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:01:43,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:01:43,900 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-11T16:01:43.897654433Z 04:01:43,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:01:43,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.937 ms 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 128.4 μs 04:01:43,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:01:43,900 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:01:44,43 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-35811EA1.v1 04:01:44,43 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:01:44,43 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:01:44,43 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:01:44,43 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T16:01:43.897654433Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest18329747801795387222/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A13E7-35811EA1.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:01:44,45 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-380225152] 04:01:44,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-1972304142] 04:01:44,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#243928145] 04:01:44,56 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:01:44,57 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#843,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129]/waiting 04:01:44,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.8 ms 04:01:44,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 22.44 μs 04:01:44,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:01:44,57 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:01:44,57 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:01:44,57 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:01:44,57 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:01:44,61 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:01:44,62 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,63 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 04:01:44,63 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]]} 04:01:44,64 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 04:01:44,64 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} 04:01:44,64 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:01:44,65 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-950367316] 04:01:44,65 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#1529827953] 04:01:44,65 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-275181816] 04:01:44,68 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:01:44,68 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,68 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 04:01:44,70 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:01:44,70 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:01:44,71 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:01:44,71 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:01:44,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-1441714381] 04:01:44,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1381210025] 04:01:44,82 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1011924560] 04:01:44,84 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:01:44,85 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,85 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 04:01:44,86 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]]} 04:01:44,86 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:01:44,86 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:01:44,87 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:01:44,87 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:01:44,87 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:01:44,87 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:01:44,87 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:01:44,87 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:01:44,87 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:01:44,87 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} 04:01:44,87 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:01:44,87 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:01:44,88 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:01:44,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:01:44,88 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:01:44,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:01:44,88 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:01:44,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:01:44,88 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:01:44,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:01:44,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-1224538427] 04:01:44,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-234211063] 04:01:44,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1653362670] 04:01:44,102 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:01:44,102 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,103 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:01:44,103 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:01:44,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1689759021] 04:01:44,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-202720888] 04:01:44,115 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-358279460] 04:01:44,117 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:01:44,117 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,119 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:01:44,119 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:01:44,119 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:01:44,119 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:01:44,120 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 04:01:44,120 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]]} 04:01:44,120 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 04:01:44,120 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:44,120 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:01:44,120 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:01:44,120 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:01:44,120 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:01:44,120 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} 04:01:44,121 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:01:44,121 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:01:44,121 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:01:44,121 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:01:44,121 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-559589180] 04:01:44,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-835246467] 04:01:44,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-1993616122] 04:01:44,134 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:01:44,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,135 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 04:01:44,136 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]]} 04:01:44,136 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 04:01:44,137 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} 04:01:44,137 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:01:44,137 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:01:44,138 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]]} 04:01:44,138 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 04:01:44,139 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} 04:01:44,139 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:01:44,139 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:01:44,140 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]]} 04:01:44,140 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 04:01:44,140 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} 04:01:44,140 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:01:44,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#2106233698] 04:01:44,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-411819238] 04:01:44,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-706149636] 04:01:44,154 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:01:44,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,355 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:01:44,355 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.120:17355, Removed) 04:01:44,355 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:01:44,355 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:01:44,355 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:01:44,355 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:01:44,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1127526601] 04:01:44,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1781166117] 04:01:44,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-455516033] 04:01:44,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,369 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:01:44,520 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:01:44,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#890068652] 04:01:44,531 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-497000733] 04:01:44,531 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1371865624] 04:01:44,534 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:01:44,534 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,537 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 04:01:44,537 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:01:44,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1013331885] 04:01:44,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1609055126] 04:01:44,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1865729748] 04:01:44,543 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:01:44,543 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,545 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]]} 04:01:44,545 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:01:44,545 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:01:44,545 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:01:44,545 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:01:44,545 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:01:44,545 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:01:44,546 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} 04:01:44,546 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:01:44,546 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:01:44,546 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:01:44,546 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:01:44,546 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:01:44,546 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:01:44,546 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:01:44,546 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:01:44,546 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:01:44,546 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:01:44,547 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:01:44,547 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:01:44,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-2028271284] 04:01:44,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#1920507067] 04:01:44,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-30043076] 04:01:44,561 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:01:44,561 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,562 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:01:44,563 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:01:44,563 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:01:44,563 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:01:44,564 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]]} 04:01:44,565 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} 04:01:44,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-2137370956] 04:01:44,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1214949979] 04:01:44,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1941041027] 04:01:44,570 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:01:44,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:44,571 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 04:01:44,571 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]]} 04:01:44,571 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:01:44,572 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:01:44,572 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:01:44,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#363419985] 04:01:44,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#995034366] 04:01:44,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#856578580] 04:01:44,576 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/11/2025 16:01:44.577] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7fa37ade [INFO] [pekkoDeadLetter][08/11/2025 16:01:44.577] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:44,577 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:44,578 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:01:44,578 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:01:44,578 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:01:44,579 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:01:44,579 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:01:44,579 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:01:44,580 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:01:44,580 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:01:44,581 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:01:44,581 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:01:44,581 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:01:44,582 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:01:44,582 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:44,582 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:01:44,584 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.tmp 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:44.584376527Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 5.368 ms, resetting timer for the next recovery snapshot 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:01:44,589 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 220.3 μs with journalIndex=1 04:01:44,590 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:01:44,590 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:01:44,691 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1 04:01:44,691 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:01:44,691 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:01:44,691 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:01:44,691 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:44.584376527Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:01:44,692 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 112.5 ms 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:01:44,692 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:01:44,693 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:01:44,695 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:01:44,696 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:01:44,696 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.252 ms 04:01:44,696 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 7.010 μs 04:01:44,696 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:01:44,696 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08d6158@7857c64b} 04:01:44,696 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:01:44,697 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:01:44,697 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 04:01:44,697 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.441 ms 04:01:44,697 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08d6158@7857c64b} 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08d6158@7857c64b} 04:01:44,697 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.723 ms 04:01:44,698 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.tmp [WARN] [08/11/2025 16:01:44.698] [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 16:01:44.698] [test-pekko.actor.default-dispatcher-5] [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'. 04:01:44,698 PM [test-pekko.actor.default-dispatcher-5] [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'. 04:01:44,699 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:01:44.584376527Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-22D4E0CF.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T16:01:44.697824124Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d434567] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:01:44,700 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:01:44,700 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-11T16:01:44.697824124Z 04:01:44,700 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:01:44,700 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.238 ms 04:01:44,700 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:01:44,701 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:01:44,701 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:01:44,701 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 197.2 μs 04:01:44,701 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:01:44,701 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:01:44,932 PM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:01:44,944 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:01:44,944 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:01:44,944 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:01:44,944 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1 04:01:44,944 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T16:01:44.697824124Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:01:44,946 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:01:44,956 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#846,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130]/waiting 04:01:44,956 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 255.8 ms 04:01:44,957 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 22.22 μs 04:01:44,957 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:01:44,957 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:01:44,957 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:01:44,957 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:01:44,957 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/11/2025 16:01:44.958] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5e7af93a [INFO] [pekkoDeadLetter][08/11/2025 16:01:44.958] [test-pekko.actor.default-dispatcher-5] [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'. 04:01:44,958 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 04:01:44,959 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:01:44,959 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:01:44,959 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:01:44,960 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:01:44,960 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:01:44,960 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:01:44,960 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:01:44,960 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:01:44,962 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:44,962 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:01:44,962 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:01:44,962 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:01:44,962 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1 04:01:44,962 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T16:01:44.697824124Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest711657616809090963/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A13E8-2997F37C.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:01:44,963 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:01:44,963 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-11T16:01:44.697824124Z 04:01:44,963 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:44,963 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 164.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 301.2 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 232.7 μs with journalIndex=4 04:01:44,964 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:01:45,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#359651741] 04:01:45,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#503990354] 04:01:45,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1586901107] 04:01:45,69 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:01:45,69 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#851,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131]/waiting 04:01:45,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 109.3 ms 04:01:45,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 36.54 μs 04:01:45,70 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:01:45,71 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:01:45,71 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:01:45,71 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:01:45,71 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:01:45,74 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:01:45,74 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:45,375 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:01:45,505 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:01:45,505 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:01:45,755 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:01:45,955 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:01:45,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-948447663] 04:01:45,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-962876180] 04:01:45,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1199584784] 04:01:45,969 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:45,970 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:01:45,970 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:01:45,970 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:01:45,970 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:01:45,970 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:01:45,970 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-727740866] 04:01:45,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#349593518] 04:01:45,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#744391880] 04:01:45,983 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:45,985 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 04:01:45,985 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:01:45,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1219095731] 04:01:46,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1768141660] 04:01:46,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1714424765] 04:01:46,3 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,5 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]]} 04:01:46,5 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:01:46,5 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:01:46,5 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:01:46,5 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:01:46,5 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:01:46,5 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} 04:01:46,5 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:01:46,5 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:01:46,6 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:01:46,6 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:01:46,6 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:01:46,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#395201223] 04:01:46,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-1695317854] 04:01:46,17 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1025167253] 04:01:46,20 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,22 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 04:01:46,23 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:01:46,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1693317467] 04:01:46,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1970114846] 04:01:46,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#99380059] 04:01:46,36 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,37 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 04:01:46,38 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 04:01:46,38 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} 04:01:46,38 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:01:46,39 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 04:01:46,41 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:01:46,41 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:01:46,41 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. 04:01:46,41 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 04:01:46,42 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 04:01:46,42 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:01:46,43 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:01:46,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#606328558] 04:01:46,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1755017079] 04:01:46,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-166447362] 04:01:46,57 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,57 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:01:46,58 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:01:46,58 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,59 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:01:46,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:01:46,59 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:01:46,60 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:01:46,60 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:01:46,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-1252460648] 04:01:46,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#1970975614] 04:01:46,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1911210182] 04:01:46,74 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,75 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:01:46,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1447434859] 04:01:46,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-1641607357] 04:01:46,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-801233767] 04:01:46,89 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:01:46,90 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 04:01:46,90 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:01:46,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1524580451] 04:01:46,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1574753714] 04:01:46,102 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#872859834] [INFO] [08/11/2025 16:01:46.103] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:01:46,103 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/11/2025 16:01:46.104] [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.120:17355) [INFO] [pekkoDeadLetter][08/11/2025 16:01:46.104] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-867105224] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:01:46,104 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-867105224] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [08/11/2025 16:01:46.104] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - Exiting completed 04:01:46,105 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - Exiting completed 04:01:46,105 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - Shutting down... [INFO] [08/11/2025 16:01:46.104] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - Shutting down... [INFO] [08/11/2025 16:01:46.105] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.120:17355] - Successfully shut down 04:01:46,105 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.120:17355] - Successfully shut down [INFO] [08/11/2025 16:01:46.108] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.120:17355/system/remoting-terminator] Shutting down remote daemon. 04:01:46,108 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:01:46,108 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 16:01:46.108] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.120:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 16:01:46.111] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.120:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/11/2025 16:01:46.111] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger 04:01:46,111 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.