[DEBUG] [08/11/2025 16:02:08.330] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:02:08,331 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/11/2025 16:02:08.331] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/11/2025 16:02:08.331] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/11/2025 16:02:08.340] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.220:17355] with UID [9322821768527356] 04:02:08,340 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.220:17355] with UID [9322821768527356] [INFO] [08/11/2025 16:02:08.340] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - Starting up, Pekko version [1.0.3] ... 04:02:08,340 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/11/2025 16:02:08.343] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:02:08,343 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/11/2025 16:02:08.343] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - Started up successfully 04:02:08,343 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - Started up successfully [INFO] [08/11/2025 16:02:08.344] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/11/2025 16:02:08.344] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:02:08,344 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:02:08,344 PM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:02:08,357 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:02:08,357 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,449 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:02:08,449 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:02:08,449 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:02:08,450 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:02:08,451 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:02:08,451 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:02:08,451 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:02:08,451 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:02:08,454 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:02:08,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior390#1486182190] 04:02:08,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower391#1779962707] 04:02:08,456 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader392#-597217834] 04:02:08,459 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:02:08,459 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,461 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:02:08,461 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:02:08,461 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,462 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:02:08,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior393#126530138] 04:02:08,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower394#-770323122] 04:02:08,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader395#-1578889790] 04:02:08,464 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:02:08,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,465 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:02:08,465 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:02:08,465 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:02:08,465 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:02:08,465 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:02:08,465 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:02:08,465 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:02:08,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:02:08,466 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,467 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,467 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:02:08,467 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,467 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:02:08,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior396#2102172382] 04:02:08,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower397#1819490167] 04:02:08,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader398#-1436845377] 04:02:08,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,470 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:02:08,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#-1797026046] 04:02:08,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower400#2042584791] 04:02:08,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader401#1789466855] 04:02:08,473 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:02:08,473 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,474 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,474 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,474 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:08,474 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:02:08,474 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:02:08,475 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:02:08,475 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:02:08,475 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,475 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,475 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:02:08,476 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:02:08,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior402#1649404476] 04:02:08,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower403#-1057923762] 04:02:08,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader404#-402059160] 04:02:08,479 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:02:08,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:02:08,480 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,481 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:02:08,481 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:02:08,481 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:02:08,481 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:02:08,481 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:02:08,481 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:02:08,481 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,482 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:02:08,482 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:02:08,482 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:02:08,482 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:02:08,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#-1677803897] 04:02:08,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower406#432428801] 04:02:08,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader407#974721271] 04:02:08,485 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:02:08,485 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,485 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:02:08,486 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:02:08,486 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,486 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:02:08,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior408#348524217] 04:02:08,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower409#-1971972706] 04:02:08,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader410#-1639040841] 04:02:08,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#-1099487893] 04:02:08,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower412#1891911786] 04:02:08,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader413#393848986] 04:02:08,493 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:02:08,493 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,493 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:02:08,494 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,494 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,495 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,495 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:02:08,495 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:02:08,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:02:08,495 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:02:08,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior414#435385825] 04:02:08,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower415#933014417] 04:02:08,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader416#-1778940602] 04:02:08,498 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/11/2025 16:02:08.499] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@634558fd [INFO] [pekkoDeadLetter][08/11/2025 16:02:08.499] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:08,500 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:08,501 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:02:08,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:02:08,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:02:08,501 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:02:08,502 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:02:08,502 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:02:08,502 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:02:08,502 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:02:08,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:02:08,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:02:08,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:02:08,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:02:08,505 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:08,505 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:02:08,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:08,508 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:02:08,508 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:02:08,508 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:02:08,508 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:02:08,509 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:02:08,509 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.tmp 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:08.509051766Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.931 ms, resetting timer for the next recovery snapshot 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:02:08,513 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:02:08,514 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:02:08,514 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:02:08,514 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 203.5 μs with journalIndex=1 04:02:08,514 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:02:08,515 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:02:08,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1 04:02:08,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:02:08,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:02:08,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:02:08,615 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:08.509051766Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:02:08,616 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 04:02:08,616 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:02:08,616 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:02:08,616 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:02:08,616 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:02:08,617 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 114.9 ms 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:02:08,617 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:02:08,622 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:02:08,622 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 5.517 ms 04:02:08,622 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.220 μs 04:02:08,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:02:08,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 more completion(s) pending 04:02:08,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 211.7 μs 04:02:08,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 3 completion(s) 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08d5d20@11ac79eb} 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:02:08,623 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:02:08,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-252B310A.tmp 04:02:08,624 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:02:08,624 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:02:08,624 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08d5d20@11ac79eb} 04:02:08,624 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.721 ms [WARN] [08/11/2025 16:02:08.624] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 16:02:08.624] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:08,624 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:08,625 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-252B310A.v1 04:02:08,625 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-252B310A.v1 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:08.509051766Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-1E578376.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T16:02:08.623587594Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-252B310A.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d932444] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:02:08,626 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:02:08,626 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-11T16:02:08.623587594Z 04:02:08,626 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:02:08,626 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:02:08,626 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.831 ms 04:02:08,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:02:08,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:02:08,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:02:08,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 235.6 μs 04:02:08,627 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:02:08,627 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:02:08,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-252B310A.v1 04:02:08,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:02:08,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:02:08,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:02:08,818 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T16:02:08.623587594Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17370816272948922886/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A1400-252B310A.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:02:08,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior417#701862768] 04:02:08,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower418#-1282194846] 04:02:08,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader419#48877001] 04:02:08,832 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:02:08,832 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#836,testCaptureSnapshotOnLastEntryInAppendEntries-writer-128]/waiting 04:02:08,832 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 205.6 ms 04:02:08,832 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 30.28 μs 04:02:08,833 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:02:08,833 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:02:08,833 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:02:08,833 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:02:08,833 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:02:08,836 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-227959003] 04:02:08,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1273204002] 04:02:08,839 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#1290261388] 04:02:08,841 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:02:08,841 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,842 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:02:08,842 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:02:08,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#2134977268] 04:02:08,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#747191621] 04:02:08,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#190437314] 04:02:08,845 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:02:08,845 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,845 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:02:08,846 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,847 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,847 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:02:08,847 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:02:08,847 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1861039682] 04:02:08,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-637946312] 04:02:08,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1388565354] 04:02:08,850 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:02:08,850 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,850 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,851 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,851 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:02:08,851 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,851 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,851 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:02:08,852 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,852 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:02:08,852 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,852 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:02:08,852 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-2136250397] 04:02:08,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#654243243] 04:02:08,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1382774990] 04:02:08,854 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1094325013] 04:02:08,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#869584890] 04:02:08,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#1777780400] 04:02:08,856 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:02:08,856 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,856 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,857 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,857 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:02:08,857 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,857 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,857 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:02:08,858 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,858 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:02:08,858 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,858 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:02:08,859 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,859 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:02:08,859 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,859 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:02:08,859 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#716387096] 04:02:08,860 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-760422656] 04:02:08,860 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#947718247] 04:02:08,863 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:02:08,863 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,864 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:02:08,865 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:08,865 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:02:08,865 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:02:08,865 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:02:08,865 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:02:08,865 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,865 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:02:08,866 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:02:08,866 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:02:08,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-313246760] 04:02:08,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-516908890] 04:02:08,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1559870255] 04:02:08,870 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:02:08,870 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,871 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:02:08,872 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader443 04:02:08,872 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader443 04:02:08,874 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:02:08,874 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-595123638] 04:02:08,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1562904532] 04:02:08,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1760713491] 04:02:08,877 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:02:08,877 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,877 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,878 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,878 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:08,878 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:02:08,878 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:02:08,878 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:02:08,878 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:02:08,879 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,879 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,879 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:02:08,879 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:02:08,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1765594277] 04:02:08,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1566949006] 04:02:08,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#279665915] 04:02:08,882 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:02:08,882 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:08,882 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:08,883 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:08,883 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:02:08,883 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,883 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:08,883 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#851452345] 04:02:08,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-804467621] 04:02:08,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#570160651] 04:02:08,885 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/11/2025 16:02:08.886] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@193baf68 04:02:08,886 PM [test-pekko.actor.default-dispatcher-8] [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'. [INFO] [pekkoDeadLetter][08/11/2025 16:02:08.886] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:08,887 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:02:08,887 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:02:08,887 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:02:08,887 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:02:08,888 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:02:08,888 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:02:08,888 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:02:08,888 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:02:08,889 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:02:08,889 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:02:08,889 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:02:08,889 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:02:08,889 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:02:08,889 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:02:08,892 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-3532B30C.tmp 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-3532B30C.v1 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-3532B30C.v1 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:08.892515084Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-3532B30C.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.323 ms, resetting timer for the next recovery snapshot 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:02:08,895 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 160.4 μs with journalIndex=1 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:02:08,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:02:08,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 4 commands after 8.839 ms 04:02:08,902 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:02:08,902 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 4 completion(s) pending 04:02:08,902 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 4 commands in 5.647 ms 04:02:08,902 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:02:08,902 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 4 completion(s) 04:02:08,902 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:02:08,902 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c08d5d20@6e9e13a9} 04:02:08,902 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:02:08,902 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c08d5d20@6e9e13a9} 04:02:08,902 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c08d5d20@6e9e13a9} 04:02:08,903 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 6.398 ms [WARN] [08/11/2025 16:02:08.903] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 04:02:08,903 PM [test-pekko.actor.default-dispatcher-8] [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][08/11/2025 16:02:08.903] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:08,903 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-35D55F24.tmp 04:02:08,905 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-35D55F24.v1 04:02:08,905 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-35D55F24.v1 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-3532B30C.v1 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:08.892515084Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-3532B30C.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T16:02:08.903175972Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-35D55F24.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d560821] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:02:08,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:02:08,906 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-11T16:02:08.903175972Z 04:02:08,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:02:08,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.950 ms 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 128.5 μs 04:02:08,906 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:02:08,906 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:02:09,48 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-35D55F24.v1 04:02:09,48 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:02:09,48 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:02:09,48 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:02:09,48 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T16:02:08.903175972Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10013936623968500424/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A1400-35D55F24.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:02:09,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-2012910665] 04:02:09,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-509950769] 04:02:09,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1006953580] 04:02:09,51 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:02:09,52 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#843,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129]/waiting 04:02:09,52 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 145.3 ms 04:02:09,52 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 34.97 μs 04:02:09,52 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:02:09,52 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:02:09,52 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:02:09,52 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:02:09,52 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:02:09,56 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:02:09,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,56 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:09,57 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:02:09,57 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:02:09,57 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,57 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:02:09,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1841191140] 04:02:09,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-320720634] 04:02:09,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#703960428] 04:02:09,60 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:02:09,60 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,61 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:02:09,62 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:02:09,62 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:02:09,62 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:02:09,62 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:02:09,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1899644356] 04:02:09,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1223913922] 04:02:09,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#733821029] 04:02:09,65 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:02:09,65 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,66 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:02:09,66 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:02:09,66 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:02:09,66 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:02:09,67 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,67 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:02:09,67 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:02:09,67 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:02:09,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:02:09,67 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:02:09,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:02:09,67 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:02:09,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:02:09,67 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:02:09,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:02:09,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#174809375] 04:02:09,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1961477501] 04:02:09,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#556263888] 04:02:09,69 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:02:09,70 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,70 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:02:09,70 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:02:09,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#254895873] 04:02:09,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1661518492] 04:02:09,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-2041275064] 04:02:09,73 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:02:09,73 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,73 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:02:09,73 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:02:09,73 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:02:09,73 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:02:09,74 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,74 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:02:09,74 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:02:09,75 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:02:09,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:02:09,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#591805777] 04:02:09,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1081719653] 04:02:09,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1585279411] 04:02:09,77 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:02:09,77 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,77 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:02:09,78 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:09,78 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:02:09,78 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,78 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:02:09,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:02:09,78 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:09,78 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:02:09,79 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,79 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:02:09,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:02:09,79 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:02:09,79 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:02:09,80 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,80 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:02:09,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1606982830] 04:02:09,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1697884419] 04:02:09,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#1611269228] 04:02:09,82 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:02:09,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,282 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:02:09,282 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.220:17355, Removed) 04:02:09,283 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:02:09,283 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:02:09,283 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:02:09,283 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:02:09,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1788071948] 04:02:09,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1966143792] 04:02:09,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-1637969723] 04:02:09,287 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,287 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:02:09,488 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:02:09,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#869564821] 04:02:09,489 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#164047166] 04:02:09,489 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1999203995] 04:02:09,492 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:02:09,492 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,495 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:02:09,496 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:02:09,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-474881156] 04:02:09,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#358442867] 04:02:09,498 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#165222790] 04:02:09,500 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:02:09,500 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,501 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:02:09,501 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:02:09,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:02:09,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:02:09,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:02:09,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:02:09,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:02:09,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:02:09,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:02:09,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:02:09,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:02:09,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:02:09,502 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-977799435] 04:02:09,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#535859264] 04:02:09,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1547995732] 04:02:09,504 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:02:09,504 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,505 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:02:09,505 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:02:09,505 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:02:09,505 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:02:09,506 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:02:09,506 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,506 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1531835379] 04:02:09,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1411540934] 04:02:09,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1904839551] 04:02:09,508 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:02:09,508 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:09,508 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:02:09,509 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:02:09,509 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:02:09,509 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:02:09,509 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:02:09,509 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#1030530140] 04:02:09,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1902526130] 04:02:09,510 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1556706149] 04:02:09,512 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/11/2025 16:02:09.512] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7e5164c0 [INFO] [pekkoDeadLetter][08/11/2025 16:02:09.512] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:09,513 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:09,513 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:02:09,513 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:02:09,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:02:09,514 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:02:09,515 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:02:09,515 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:02:09,515 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:02:09,515 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:02:09,517 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:02:09,517 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:02:09,517 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:02:09,517 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:02:09,517 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:09,517 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:02:09,521 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.tmp 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:09.521570832Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.032 ms, resetting timer for the next recovery snapshot 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 130.6 μs with journalIndex=1 04:02:09,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:02:09,524 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:02:09,624 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1 04:02:09,625 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:02:09,625 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:02:09,625 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:02:09,625 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:09.521570832Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:02:09,625 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:02:09,626 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 110.3 ms 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:02:09,626 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 6.045 ms 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 5.490 μs 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d5d20@1efbd78c} 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d5d20@1efbd78c} 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 221.0 μs 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d5d20@1efbd78c} 04:02:09,632 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.tmp 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.159 ms 04:02:09,632 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:02:09,633 PM [test-pekko.actor.default-dispatcher-6] [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'. [WARN] [08/11/2025 16:02:09.633] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 16:02:09.633] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T16:02:09.521570832Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-1F168A10.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T16:02:09.632540961Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:02:09,635 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d253977] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:02:09,635 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:02:09,636 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-11T16:02:09.632540961Z 04:02:09,636 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:02:09,636 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:02:09,636 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.683 ms 04:02:09,636 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:02:09,636 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:02:09,636 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:02:09,636 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 230.3 μs 04:02:09,636 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:02:09,637 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:02:09,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1 04:02:09,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:02:09,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:02:09,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:02:09,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T16:02:09.632540961Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:02:09,879 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:02:09,890 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#846,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130]/waiting 04:02:09,890 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 254.1 ms 04:02:09,890 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 25.68 μs 04:02:09,890 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:02:09,891 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:02:09,891 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:02:09,891 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:02:09,891 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/11/2025 16:02:09.892] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2647daf1 [INFO] [pekkoDeadLetter][08/11/2025 16:02:09.892] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:09,892 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:09,892 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:02:09,893 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:02:09,893 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:02:09,893 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:02:09,894 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:02:09,894 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:02:09,894 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:02:09,894 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T16:02:09.632540961Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest593646184789467919/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A1401-25B3CF21.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:02:09,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:02:09,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-11T16:02:09.632540961Z 04:02:09,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 407.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 542.4 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 204.2 μs with journalIndex=4 04:02:09,898 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:02:09,992 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1282665387] 04:02:10,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1006856816] 04:02:10,3 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#704273632] 04:02:10,3 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:02:10,3 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#851,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131]/waiting 04:02:10,3 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 109.3 ms 04:02:10,3 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 31.49 μs 04:02:10,3 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:02:10,4 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:02:10,4 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:02:10,4 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:02:10,4 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:02:10,7 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:02:10,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,308 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:02:10,438 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:02:10,438 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:02:10,689 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:02:10,889 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:02:10,889 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-658821703] 04:02:10,900 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-106460650] 04:02:10,901 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#606036780] 04:02:10,905 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,905 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:02:10,905 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:02:10,906 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:02:10,906 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:02:10,906 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:02:10,907 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#1771330906] 04:02:10,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1359106181] 04:02:10,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1601095833] 04:02:10,910 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,911 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:02:10,911 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:02:10,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#22842677] 04:02:10,912 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1085842492] 04:02:10,912 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1322620864] 04:02:10,913 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:10,914 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:02:10,914 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:02:10,914 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:02:10,914 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:02:10,914 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:02:10,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#712136700] 04:02:10,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1155084275] 04:02:10,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-747165317] 04:02:10,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,917 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:02:10,918 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:02:10,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1014496851] 04:02:10,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#157898752] 04:02:10,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-1702165442] 04:02:10,920 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,920 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:02:10,921 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:02:10,921 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:02:10,921 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:02:10,921 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:02:10,922 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:02:10,922 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:02:10,922 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:02:10,922 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:02:10,922 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:02:10,923 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:02:10,923 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:02:10,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-592051098] 04:02:10,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#193896115] 04:02:10,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-1417824225] 04:02:10,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,926 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:02:10,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:02:10,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,927 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:02:10,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:02:10,927 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:02:10,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:02:10,927 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:02:10,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#2113542623] 04:02:10,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-1932019833] 04:02:10,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-33652804] 04:02:10,931 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,931 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:02:10,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-2058249732] 04:02:10,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-291092510] 04:02:10,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-429443671] 04:02:10,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:02:10,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:02:10,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:02:10,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#561452216] 04:02:10,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1395116919] 04:02:10,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1348525203] 04:02:10,936 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/11/2025 16:02:10.936] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:02:10,937 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1226247531] 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'. [WARN] [08/11/2025 16:02:10.937] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.220:17355) [INFO] [pekkoDeadLetter][08/11/2025 16:02:10.937] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1226247531] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:02:10,938 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - Exiting completed 04:02:10,938 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - Shutting down... 04:02:10,938 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.220:17355] - Successfully shut down [INFO] [08/11/2025 16:02:10.937] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - Exiting completed [INFO] [08/11/2025 16:02:10.937] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - Shutting down... [INFO] [08/11/2025 16:02:10.938] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.220:17355] - Successfully shut down [INFO] [08/11/2025 16:02:10.939] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.220:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/11/2025 16:02:10.939] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.220:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:02:10,940 PM [test-pekko.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:02:10,940 PM [test-pekko.actor.default-dispatcher-8] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 16:02:10.941] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.220:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/11/2025 16:02:10.941] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger