[DEBUG] [07/06/2025 22:08:15.115] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:08:15,116 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/06/2025 22:08:15.116] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/06/2025 22:08:15.116] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/06/2025 22:08:15.126] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.71:17355] with UID [-7790820465308788104] 10:08:15,127 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.71:17355] with UID [-7790820465308788104] 10:08:15,127 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/06/2025 22:08:15.127] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/06/2025 22:08:15.130] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/06/2025 22:08:15.130] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - Started up successfully 10:08:15,130 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:08:15,130 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - Started up successfully [INFO] [07/06/2025 22:08:15.130] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/06/2025 22:08:15.130] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:08:15,131 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:08:15,131 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:08:15,153 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:08:15,153 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,250 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:08:15,250 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:08:15,250 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:08:15,251 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:08:15,251 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:08:15,251 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:08:15,251 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:08:15,251 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:08:15,254 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:08:15,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-487844281] 10:08:15,265 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-572929454] 10:08:15,265 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#225915362] 10:08:15,267 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:08:15,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,269 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]]} 10:08:15,269 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 10:08:15,269 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} 10:08:15,270 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:08:15,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-55443593] 10:08:15,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1787387746] 10:08:15,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#965866466] 10:08:15,283 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:08:15,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,284 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:08:15,284 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:08:15,284 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:08:15,284 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:08:15,285 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:08:15,285 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:08:15,285 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:08:15,286 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:08:15,287 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 10:08:15,288 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]]} 10:08:15,288 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:08:15,289 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} 10:08:15,289 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:08:15,289 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1540069388] 10:08:15,300 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1426699058] 10:08:15,300 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#1190253056] 10:08:15,303 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,303 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:08:15,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#2012437803] 10:08:15,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1251900221] 10:08:15,315 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-2033483519] 10:08:15,317 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:08:15,317 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,318 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 10:08:15,319 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]]} 10:08:15,319 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,319 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:08:15,320 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:08:15,320 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:08:15,320 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:08:15,320 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} 10:08:15,321 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,321 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:08:15,322 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:08:15,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-1026764905] 10:08:15,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1680892998] 10:08:15,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#523039695] 10:08:15,338 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:08:15,338 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,339 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]]} 10:08:15,339 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,340 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:08:15,340 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:08:15,340 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:08:15,340 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:08:15,340 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} 10:08:15,340 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:08:15,340 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:08:15,341 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:08:15,341 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:08:15,341 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:08:15,341 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:08:15,342 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]]} 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:08:15,342 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} 10:08:15,342 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:08:15,342 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:08:15,343 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:08:15,343 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:08:15,343 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1410714405] 10:08:15,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#2114271254] 10:08:15,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-643498086] 10:08:15,356 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:08:15,356 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,357 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 10:08:15,357 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 10:08:15,358 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} 10:08:15,358 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:08:15,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#24698071] 10:08:15,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#370046995] 10:08:15,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-1452859070] 10:08:15,372 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-1563176378] 10:08:15,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-421334548] 10:08:15,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#703965524] 10:08:15,388 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:08:15,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:08:15,389 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 10:08:15,389 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]]} 10:08:15,389 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,390 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:08:15,390 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:08:15,390 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:08:15,390 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:08:15,390 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} 10:08:15,390 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,390 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:08:15,390 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:08:15,390 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:08:15,390 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:08:15,391 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1213966261] 10:08:15,401 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#376787068] 10:08:15,401 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-2005018113] 10:08:15,404 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/06/2025 22:08:15.407] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2be1c407 [INFO] [pekkoDeadLetter][07/06/2025 22:08:15.407] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:08:15,407 PM [test-pekko.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:08:15,409 PM [test-pekko.actor.default-dispatcher-10] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:08:15,409 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:08:15,409 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:08:15,409 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:08:15,409 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:08:15,409 PM [test-pekko.actor.default-dispatcher-10] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:08:15,410 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:08:15,410 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:08:15,411 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 10:08:15,411 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:08:15,411 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:08:15,411 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:08:15,411 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:15,411 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:08:15,415 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-18CAE808.tmp 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-18CAE808.v1 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-18CAE808.v1 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-06T22:08:15.415950856Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-18CAE808.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 3.769 ms, resetting timer for the next recovery snapshot 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:08:15,419 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 191.4 μs with journalIndex=1 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [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]]} 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [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} 10:08:15,420 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 10:08:15,420 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 10.75 ms 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:08:15,421 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:08:15,424 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:08:15,424 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:08:15,424 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:08:15,424 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.814 ms 10:08:15,424 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08de5e0@7ee2f929} 10:08:15,424 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.891 μs 10:08:15,424 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 10:08:15,425 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 10:08:15,425 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 10:08:15,426 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.071 ms 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 10:08:15,426 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08de5e0@7ee2f929} 10:08:15,426 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-1967A590.tmp 10:08:15,426 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.224 ms [WARN] [07/06/2025 22:08:15.426] [test-pekko.actor.default-dispatcher-10] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/06/2025 22:08:15.426] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:08:15,426 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-1967A590.v1 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-1967A590.v1 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-18CAE808.v1 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-06T22:08:15.415950856Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-18CAE808.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-06T22:08:15.426222992Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-1967A590.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d898470] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:08:15,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:08:15,430 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-06T22:08:15.426222992Z 10:08:15,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.745 ms 10:08:15,430 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 10:08:15,430 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 10:08:15,431 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:08:15,431 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:08:15,431 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 215.1 μs 10:08:15,431 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:08:15,521 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-1967A590.v1 10:08:15,522 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:08:15,522 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:08:15,522 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:08:15,522 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-06T22:08:15.426222992Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11372549645371812278/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686AF3CF-1967A590.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:08:15,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1833492070] 10:08:15,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#488497712] 10:08:15,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#1038594750] 10:08:15,535 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:08:15,535 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#890,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 10:08:15,535 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 104.7 ms 10:08:15,535 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.64 μs 10:08:15,535 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:08:15,536 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:08:15,536 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:08:15,536 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:08:15,536 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:08:15,539 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#807428586] 10:08:15,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1388411488] 10:08:15,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#600135632] 10:08:15,554 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:08:15,554 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,556 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 10:08:15,556 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:08:15,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1702160486] 10:08:15,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#581959560] 10:08:15,568 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1825649874] 10:08:15,570 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:08:15,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,571 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 10:08:15,571 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]]} 10:08:15,572 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,572 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:08:15,572 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:08:15,572 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:08:15,572 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:08:15,572 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} 10:08:15,572 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,572 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:08:15,573 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:08:15,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#845893811] 10:08:15,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#969576897] 10:08:15,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#2124575726] 10:08:15,587 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:08:15,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,588 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 10:08:15,588 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]]} 10:08:15,589 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 10:08:15,589 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} 10:08:15,589 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,590 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:08:15,590 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]]} 10:08:15,590 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 10:08:15,591 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} 10:08:15,591 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:08:15,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#1131172919] 10:08:15,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1197391460] 10:08:15,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#560860858] 10:08:15,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-2138174278] 10:08:15,616 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-646271267] 10:08:15,616 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-158441377] 10:08:15,617 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:08:15,617 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,618 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 10:08:15,619 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]]} 10:08:15,619 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 10:08:15,619 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} 10:08:15,620 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,620 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:08:15,621 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]]} 10:08:15,621 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 10:08:15,621 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} 10:08:15,622 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:08:15,622 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]]} 10:08:15,623 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 10:08:15,623 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} 10:08:15,623 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:08:15,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1473961175] 10:08:15,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1854130089] 10:08:15,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#349105999] 10:08:15,636 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:08:15,637 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,638 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]]} 10:08:15,638 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,638 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:08:15,638 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:08:15,638 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:08:15,638 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:08:15,638 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} 10:08:15,639 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:08:15,639 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:08:15,639 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:08:15,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1381737373] 10:08:15,650 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#373321305] 10:08:15,650 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1125382678] 10:08:15,652 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:08:15,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,654 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:08:15,655 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 10:08:15,655 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 10:08:15,657 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:08:15,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-930989210] 10:08:15,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-1764750902] 10:08:15,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1578423495] 10:08:15,673 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:08:15,674 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,675 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 10:08:15,677 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]]} 10:08:15,678 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,678 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:08:15,678 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:08:15,678 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:08:15,678 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:08:15,678 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} 10:08:15,678 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,678 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:08:15,679 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:08:15,679 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#279450813] 10:08:15,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#2021829224] 10:08:15,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#125546014] 10:08:15,699 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:08:15,699 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,699 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 10:08:15,700 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]]} 10:08:15,700 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 10:08:15,700 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} 10:08:15,701 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1117246609] 10:08:15,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-437135701] 10:08:15,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1253858885] 10:08:15,716 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/06/2025 22:08:15.717] [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@50083a74 [INFO] [pekkoDeadLetter][07/06/2025 22:08:15.717] [test-pekko.actor.default-dispatcher-6] [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'. 10:08:15,717 PM [test-pekko.actor.default-dispatcher-6] [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'. 10:08:15,717 PM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:08:15,717 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:08:15,717 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:08:15,718 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 10:08:15,718 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:08:15,718 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 10:08:15,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 10:08:15,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:08:15,720 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 10:08:15,720 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:08:15,720 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:08:15,720 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:08:15,720 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:08:15,720 PM [test-pekko.actor.default-dispatcher-12] [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 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:08:15,724 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2B2B6F2F.tmp 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2B2B6F2F.v1 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2B2B6F2F.v1 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-06T22:08:15.724266799Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2B2B6F2F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 2.087 ms, resetting timer for the next recovery snapshot 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:08:15,726 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 203.5 μs with journalIndex=1 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:08:15,727 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 8.713 ms 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:08:15,727 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.539 ms 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 4.440 μs 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08de5e0@13a74934} 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08de5e0@13a74934} 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 717.2 μs 10:08:15,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:08:15,732 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 10:08:15,733 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2BB41696.tmp 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08de5e0@13a74934} 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.641 ms [WARN] [07/06/2025 22:08:15.733] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 10:08:15,733 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/06/2025 22:08:15.733] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:08:15,734 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2BB41696.v1 10:08:15,734 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2B2B6F2F.v1 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2BB41696.v1 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-06T22:08:15.724266799Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2B2B6F2F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-06T22:08:15.733222550Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2BB41696.v1, size=539, entryCompress=NONE, stateCompress=NONE} 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d160168] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:08:15,735 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:08:15,735 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-06T22:08:15.733222550Z 10:08:15,735 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 10:08:15,735 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.471 ms 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 117.5 μs 10:08:15,735 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:08:15,735 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:08:15,879 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2BB41696.v1 10:08:15,879 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:08:15,879 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:08:15,879 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:08:15,879 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-06T22:08:15.733222550Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2722085441761468237/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686AF3CF-2BB41696.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 10:08:15,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-161324564] 10:08:15,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1575002742] 10:08:15,892 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1868747428] 10:08:15,892 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:08:15,892 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#893,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/waiting 10:08:15,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.9 ms 10:08:15,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 11.62 μs 10:08:15,892 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 10:08:15,892 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:08:15,892 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:08:15,892 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:08:15,892 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:08:15,895 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:08:15,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,896 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 10:08:15,896 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]]} 10:08:15,896 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 10:08:15,897 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} 10:08:15,897 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:08:15,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1163630418] 10:08:15,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-897591348] 10:08:15,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-1548493246] 10:08:15,910 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:08:15,911 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,911 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 10:08:15,912 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:08:15,913 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:08:15,913 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:08:15,913 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:08:15,913 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1660660300] 10:08:15,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1435301773] 10:08:15,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#1377306330] 10:08:15,926 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:08:15,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,927 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 10:08:15,928 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]]} 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:08:15,928 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:08:15,928 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:08:15,928 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:08:15,929 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} 10:08:15,929 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:08:15,929 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:08:15,929 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:08:15,929 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:08:15,929 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:08:15,929 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:08:15,929 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:08:15,929 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:08:15,930 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:08:15,930 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:08:15,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#801653122] 10:08:15,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-272723259] 10:08:15,941 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#2090611564] 10:08:15,943 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:08:15,943 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,944 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:08:15,944 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:08:15,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#388469163] 10:08:15,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#2069377361] 10:08:15,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-219065985] 10:08:15,958 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:08:15,958 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,959 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:08:15,959 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:08:15,959 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:08:15,959 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:08:15,960 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 10:08:15,961 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]]} 10:08:15,961 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 10:08:15,961 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:15,961 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:08:15,961 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:08:15,961 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:08:15,961 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:08:15,961 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} 10:08:15,962 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:08:15,962 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:08:15,962 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:08:15,962 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:08:15,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-31365473] 10:08:15,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#725727129] 10:08:15,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#392589372] 10:08:15,976 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:08:15,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:15,976 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 10:08:15,977 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]]} 10:08:15,977 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 10:08:15,978 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} 10:08:15,978 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:08:15,978 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:08:15,979 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]]} 10:08:15,979 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 10:08:15,979 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} 10:08:15,979 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:08:15,979 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:08:15,980 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]]} 10:08:15,980 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 10:08:15,980 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} 10:08:15,980 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:08:15,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#596872391] 10:08:15,991 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1365743922] 10:08:15,991 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#388778073] 10:08:15,993 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:08:15,993 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,194 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:08:16,194 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.71:17355, Removed) 10:08:16,194 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:08:16,194 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:08:16,194 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:08:16,195 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:08:16,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1307563779] 10:08:16,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#148654270] 10:08:16,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1302099584] 10:08:16,206 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,206 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:08:16,358 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:08:16,358 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#430441878] 10:08:16,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-191252271] 10:08:16,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-985253127] 10:08:16,362 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:08:16,362 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,364 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 10:08:16,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:08:16,365 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-825069866] 10:08:16,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#812219811] 10:08:16,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-1779872700] 10:08:16,367 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:08:16,367 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,368 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]]} 10:08:16,368 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:08:16,368 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:08:16,368 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:08:16,368 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:08:16,368 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:08:16,368 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:08:16,368 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} 10:08:16,369 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:08:16,369 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:08:16,369 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:08:16,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:08:16,369 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:08:16,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:08:16,369 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:08:16,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:08:16,369 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:08:16,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:08:16,369 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:08:16,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:08:16,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-855522658] 10:08:16,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-443627952] 10:08:16,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#2000306958] 10:08:16,371 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:08:16,371 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,372 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:08:16,372 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:08:16,372 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:08:16,372 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:08:16,372 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]]} 10:08:16,372 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} 10:08:16,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1730628783] 10:08:16,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-467903214] 10:08:16,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-917913812] 10:08:16,374 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:08:16,374 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,375 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 10:08:16,375 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]]} 10:08:16,375 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:08:16,375 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:08:16,375 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:08:16,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-1953454920] 10:08:16,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1968400482] 10:08:16,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#604113361] 10:08:16,377 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/06/2025 22:08:16.378] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@a36732b 10:08:16,378 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. [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'. [INFO] [pekkoDeadLetter][07/06/2025 22:08:16.378] [test-pekko.actor.default-dispatcher-10] [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'. 10:08:16,379 PM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:08:16,379 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:08:16,379 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:08:16,379 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:08:16,380 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:08:16,380 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 10:08:16,380 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:08:16,380 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:08:16,381 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:08:16,382 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:08:16,382 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:08:16,382 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:08:16,382 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:16,382 PM [test-pekko.actor.default-dispatcher-10] [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 10:08:16,386 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:16,387 PM [test-pekko.actor.default-dispatcher-10] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:08:16,387 PM [test-pekko.actor.default-dispatcher-10] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:08:16,387 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:08:16,387 PM [test-pekko.actor.default-dispatcher-10] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 10:08:16,387 PM [test-pekko.actor.default-dispatcher-10] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:08:16,387 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-1712C910.tmp 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-1712C910.v1 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-1712C910.v1 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-06T22:08:16.387107088Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-1712C910.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 1.810 ms, resetting timer for the next recovery snapshot 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:08:16,388 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 165.8 μs with journalIndex=1 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [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]]} 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:08:16,389 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 9.295 ms 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [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} 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:08:16,389 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 10:08:16,393 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:08:16,393 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:08:16,393 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:08:16,393 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.445 ms 10:08:16,393 PM [test-pekko.actor.default-dispatcher-10] [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/0x00000007c08de5e0@69978c9f} 10:08:16,393 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.790 μs 10:08:16,393 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:08:16,394 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 10:08:16,394 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 10:08:16,395 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.742 ms 10:08:16,395 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [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/0x00000007c08de5e0@69978c9f} 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [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] 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [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/0x00000007c08de5e0@69978c9f} 10:08:16,395 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.tmp 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.399 ms [WARN] [07/06/2025 22:08:16.395] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/06/2025 22:08:16.395] [test-pekko.actor.default-dispatcher-10] [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'. 10:08:16,395 PM [test-pekko.actor.default-dispatcher-10] [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'. 10:08:16,395 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-1712C910.v1 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-06T22:08:16.387107088Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-1712C910.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-06T22:08:16.395221246Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:08:16,397 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d188661] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:08:16,397 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:08:16,397 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-06T22:08:16.395221246Z 10:08:16,398 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 10:08:16,398 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:08:16,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.086 ms 10:08:16,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 10:08:16,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 10:08:16,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:08:16,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 187.6 μs 10:08:16,398 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:08:16,398 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:08:16,542 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1 10:08:16,542 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:08:16,542 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:08:16,542 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:08:16,542 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-06T22:08:16.395221246Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:08:16,544 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:08:16,545 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#896,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 10:08:16,545 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 147.4 ms 10:08:16,545 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 17.03 μs 10:08:16,545 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:08:16,546 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:08:16,546 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:08:16,546 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:08:16,546 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/06/2025 22:08:16.547] [test-pekko.actor.default-dispatcher-10] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4772d323 [INFO] [pekkoDeadLetter][07/06/2025 22:08:16.547] [test-pekko.actor.default-dispatcher-6] [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'. 10:08:16,547 PM [test-pekko.actor.default-dispatcher-10] [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'. 10:08:16,547 PM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:08:16,548 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:08:16,548 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:08:16,548 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 10:08:16,549 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 10:08:16,549 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 10:08:16,549 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:08:16,549 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-06T22:08:16.395221246Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15781553188056135156/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686AF3D0-178E98FE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:08:16,551 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-06T22:08:16.395221246Z 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 139.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 281.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:08:16,552 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 181.8 μs with journalIndex=4 10:08:16,553 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-1053225741] 10:08:16,553 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-272413548] 10:08:16,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-959661923] 10:08:16,554 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:08:16,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#899,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 10:08:16,554 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 5.335 ms 10:08:16,555 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 9.081 μs 10:08:16,555 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:08:16,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:08:16,555 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:08:16,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:08:16,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:08:16,557 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:08:16,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:16,858 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:08:16,988 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:08:16,988 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:08:17,238 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:08:17,440 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 202 < election timeout PT0.4S 10:08:17,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1290733290] 10:08:17,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-990403427] 10:08:17,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#360740094] 10:08:17,444 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,445 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:08:17,445 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:08:17,445 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:08:17,445 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:08:17,445 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:08:17,445 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-1704977265] 10:08:17,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-1687864195] 10:08:17,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-438449260] 10:08:17,448 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,449 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 10:08:17,449 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:08:17,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-941831678] 10:08:17,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#1948192224] 10:08:17,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#2061312896] 10:08:17,451 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,452 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]]} 10:08:17,452 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:08:17,452 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:08:17,452 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:08:17,452 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:08:17,452 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:08:17,452 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} 10:08:17,452 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:08:17,452 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:08:17,452 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:08:17,452 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:08:17,452 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:08:17,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-2118027052] 10:08:17,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1736685240] 10:08:17,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#1787484341] 10:08:17,454 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,455 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 10:08:17,456 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:08:17,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1151825416] 10:08:17,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-949879350] 10:08:17,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-978262695] 10:08:17,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,458 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 10:08:17,458 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 10:08:17,459 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} 10:08:17,459 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:08:17,459 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 10:08:17,460 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:08:17,460 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:08:17,460 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. 10:08:17,460 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 10:08:17,460 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 10:08:17,461 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:08:17,461 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:08:17,461 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1337821126] 10:08:17,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-984815130] 10:08:17,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#1726651268] 10:08:17,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:08:17,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:08:17,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,464 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:08:17,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:08:17,464 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:08:17,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:08:17,464 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:08:17,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-564603631] 10:08:17,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#638809455] 10:08:17,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-919091552] 10:08:17,467 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,467 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:08:17,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-900758055] 10:08:17,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1512836743] 10:08:17,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1673237813] 10:08:17,469 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:08:17,470 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 10:08:17,470 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:08:17,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1961916080] 10:08:17,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#2032121044] 10:08:17,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-40068675] [INFO] [07/06/2025 22:08:17.471] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:08:17,471 PM [test-pekko.actor.default-dispatcher-13] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/06/2025 22:08:17.472] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.71:17355) [INFO] [pekkoDeadLetter][07/06/2025 22:08:17.472] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1924660409] 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'. 10:08:17,472 PM [test-pekko.actor.default-dispatcher-10] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1924660409] 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] [07/06/2025 22:08:17.473] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - Exiting completed [INFO] [07/06/2025 22:08:17.473] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - Shutting down... 10:08:17,473 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - Exiting completed 10:08:17,473 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - Shutting down... [INFO] [07/06/2025 22:08:17.473] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.71:17355] - Successfully shut down 10:08:17,473 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.71:17355] - Successfully shut down [INFO] [07/06/2025 22:08:17.474] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.71:17355/system/remoting-terminator] Shutting down remote daemon. 10:08:17,474 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/06/2025 22:08:17.474] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.71:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:08:17,474 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/06/2025 22:08:17.476] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.71:17355/system/remoting-terminator] Remoting shut down. 10:08:17,476 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/06/2025 22:08:17.476] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger