[DEBUG] [08/11/2025 15:13:05.284] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 03:13:05,284 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/11/2025 15:13:05.284] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/11/2025 15:13:05.284] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/11/2025 15:13:05.295] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.188:17355] with UID [276112831829887683] 03:13:05,295 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.188:17355] with UID [276112831829887683] [INFO] [08/11/2025 15:13:05.296] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - Starting up, Pekko version [1.0.3] ... 03:13:05,296 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/11/2025 15:13:05.298] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 03:13:05,298 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/11/2025 15:13:05.298] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - Started up successfully 03:13:05,298 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - Started up successfully [INFO] [08/11/2025 15:13:05.299] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 03:13:05,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188: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 15:13:05.299] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 03:13:05,299 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 03:13:05,310 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 03:13:05,310 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,393 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:13:05,393 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:13:05,393 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:13:05,394 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:13:05,394 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:13:05,394 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 03:13:05,394 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:13:05,395 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:13:05,397 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 03:13:05,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior390#341865195] 03:13:05,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower391#-602631336] 03:13:05,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader392#339128107] 03:13:05,412 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 03:13:05,412 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,415 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]]} 03:13:05,415 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 03:13:05,416 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} 03:13:05,416 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:13:05,416 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior393#-2110668270] 03:13:05,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower394#514907538] 03:13:05,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader395#-203547621] 03:13:05,431 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 03:13:05,431 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,432 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:13:05,432 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:13:05,432 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:13:05,432 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:13:05,433 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 03:13:05,433 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 03:13:05,433 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 03:13:05,434 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:13:05,434 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 03:13:05,435 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]]} 03:13:05,435 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 03:13:05,435 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} 03:13:05,435 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 03:13:05,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior396#-26882511] 03:13:05,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower397#-1633258353] 03:13:05,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader398#-893908637] 03:13:05,448 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,449 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:13:05,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior399#480010855] 03:13:05,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower400#888638223] 03:13:05,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader401#-1442273174] 03:13:05,462 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:13:05,462 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,463 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 03:13:05,464 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]]} 03:13:05,464 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:05,464 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:13:05,465 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:13:05,465 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:13:05,465 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:13:05,465 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} 03:13:05,466 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,466 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:13:05,468 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:13:05,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior402#1470815023] 03:13:05,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower403#-439171] 03:13:05,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader404#1485496945] 03:13:05,483 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 03:13:05,483 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,484 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]]} 03:13:05,485 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:05,485 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:13:05,485 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:13:05,485 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:13:05,485 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 03:13:05,485 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} 03:13:05,486 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:13:05,486 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:13:05,486 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:13:05,486 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:13:05,486 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:13:05,486 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:13:05,488 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]]} 03:13:05,488 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:13:05,488 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 03:13:05,488 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 03:13:05,488 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 03:13:05,488 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:13:05,488 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:13:05,488 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} 03:13:05,489 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 03:13:05,489 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:13:05,489 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:13:05,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:13:05,489 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior405#1395592250] 03:13:05,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower406#1574822363] 03:13:05,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader407#1760129183] 03:13:05,502 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 03:13:05,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,503 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 03:13:05,504 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 03:13:05,505 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} 03:13:05,505 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 03:13:05,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior408#1552950931] 03:13:05,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower409#-2048700753] 03:13:05,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader410#-1945488060] 03:13:05,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior411#-1281215767] 03:13:05,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower412#1942496091] 03:13:05,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader413#-1026230006] 03:13:05,535 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 03:13:05,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:13:05,536 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 03:13:05,537 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]]} 03:13:05,537 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:05,537 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:13:05,537 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:13:05,537 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:13:05,538 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:13:05,538 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} 03:13:05,538 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,538 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 03:13:05,538 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 03:13:05,538 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 03:13:05,539 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 03:13:05,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior414#949748172] 03:13:05,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower415#1439542332] 03:13:05,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader416#-254646584] 03:13:05,552 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 03:13:05,557 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 03:13:05,557 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:13:05,557 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 03:13:05,558 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:13:05,559 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:13:05,559 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 03:13:05,559 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 03:13:05,559 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:13:05,559 PM [test-pekko.actor.default-dispatcher-6] [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'. [WARN] [08/11/2025 15:13:05.560] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@12b18f71 [INFO] [pekkoDeadLetter][08/11/2025 15:13:05.559] [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'. 03:13:05,564 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 03:13:05,564 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:13:05,564 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:13:05,564 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 03:13:05,564 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:05,564 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 03:13:05,568 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.tmp 03:13:05,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:05.568669795Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1, size=419, entryCompress=NONE, stateCompress=NONE} 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.792 ms, resetting timer for the next recovery snapshot 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 188.4 μs with journalIndex=1 03:13:05,573 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 03:13:05,574 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 03:13:05,674 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1 03:13:05,674 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:13:05,675 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:13:05,675 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:13:05,675 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:05.568669795Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [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]]} 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [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} 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 03:13:05,675 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 03:13:05,675 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 116.6 ms 03:13:05,676 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 03:13:05,676 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 03:13:05,676 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 03:13:05,676 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 03:13:05,676 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 03:13:05,676 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 4.665 ms 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.171 μs 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08c6f40@4df651de} 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [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] 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 152.2 μs 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08c6f40@4df651de} 03:13:05,680 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-28955A3D.tmp 03:13:05,680 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.636 ms 03:13:05,681 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [08/11/2025 15:13:05.681] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 15:13:05.681] [test-pekko.actor.default-dispatcher-15] [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'. 03:13:05,681 PM [test-pekko.actor.default-dispatcher-15] [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'. 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-28955A3D.v1 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-28955A3D.v1 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:05.568669795Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-21E53663.v1, size=419, entryCompress=NONE, stateCompress=NONE} 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T15:13:05.680876605Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-28955A3D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 03:13:05,682 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d400886] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:13:05,683 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:13:05,683 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-11T15:13:05.680876605Z 03:13:05,683 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 03:13:05,683 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 03:13:05,683 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.312 ms 03:13:05,683 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 03:13:05,683 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 03:13:05,683 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 03:13:05,683 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 139.7 μs 03:13:05,683 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 03:13:05,683 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 03:13:05,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 03:13:05,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 03:13:05,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-28955A3D.v1 03:13:05,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 03:13:05,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-11T15:13:05.680876605Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4212117590172196916/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689A0881-28955A3D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 03:13:05,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior417#1243844562] 03:13:05,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower418#2001637703] 03:13:05,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader419#-1460492250] 03:13:05,891 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 03:13:05,891 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#839,testCaptureSnapshotOnLastEntryInAppendEntries-writer-128]/waiting 03:13:05,891 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 208.4 ms 03:13:05,891 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 31.09 μs 03:13:05,891 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-128] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 03:13:05,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:13:05,892 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 03:13:05,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:13:05,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 03:13:05,894 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,896 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-979141124] 03:13:05,906 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-548809678] 03:13:05,906 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-1354610334] 03:13:05,908 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 03:13:05,908 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,910 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 03:13:05,911 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:13:05,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#2018787536] 03:13:05,922 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-869928456] 03:13:05,922 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-117637812] 03:13:05,924 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 03:13:05,924 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,925 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 03:13:05,925 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]]} 03:13:05,925 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:05,926 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:13:05,926 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:13:05,926 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:13:05,926 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:13:05,926 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} 03:13:05,926 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,926 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:13:05,926 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:13:05,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#663404879] 03:13:05,937 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-69407593] 03:13:05,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1735874204] 03:13:05,939 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 03:13:05,939 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,940 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 03:13:05,940 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]]} 03:13:05,940 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 03:13:05,941 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} 03:13:05,941 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,941 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 03:13:05,942 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]]} 03:13:05,942 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 03:13:05,943 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} 03:13:05,943 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:13:05,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#376044937] 03:13:05,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#316665101] 03:13:05,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1172086266] 03:13:05,958 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#316646850] 03:13:05,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1508997576] 03:13:05,959 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#570981960] 03:13:05,961 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 03:13:05,962 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,962 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 03:13:05,963 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]]} 03:13:05,963 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 03:13:05,963 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} 03:13:05,963 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,963 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:13:05,964 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]]} 03:13:05,964 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 03:13:05,964 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} 03:13:05,964 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:13:05,965 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]]} 03:13:05,965 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 03:13:05,965 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} 03:13:05,965 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:13:05,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#1768034131] 03:13:05,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1101312640] 03:13:05,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#389594097] 03:13:05,968 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 03:13:05,968 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,969 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]]} 03:13:05,969 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:05,969 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 03:13:05,969 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:13:05,969 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:13:05,969 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:13:05,969 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} 03:13:05,969 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 03:13:05,969 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:13:05,969 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 03:13:05,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-477355165] 03:13:05,970 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-798399344] 03:13:05,970 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#520048895] 03:13:05,971 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 03:13:05,971 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,972 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:13:05,973 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader443 03:13:05,973 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader443 03:13:05,974 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 03:13:05,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-2117320577] 03:13:05,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-1620251390] 03:13:05,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-566602556] 03:13:05,978 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 03:13:05,978 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,978 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 03:13:05,979 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]]} 03:13:05,979 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:05,979 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 03:13:05,979 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 03:13:05,979 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 03:13:05,979 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 03:13:05,979 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} 03:13:05,979 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,979 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 03:13:05,979 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 03:13:05,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#587103686] 03:13:05,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1417842557] 03:13:05,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-143510664] 03:13:05,982 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 03:13:05,982 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:05,982 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 03:13:05,982 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]]} 03:13:05,982 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 03:13:05,983 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} 03:13:05,983 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:05,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#2129987838] 03:13:05,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-785637384] 03:13:05,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#289143668] 03:13:05,985 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/11/2025 15:13:05.986] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@56f25afd [INFO] [pekkoDeadLetter][08/11/2025 15:13:05.986] [test-pekko.actor.default-dispatcher-15] [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'. 03:13:05,986 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:13:05,987 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 03:13:05,987 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:13:05,987 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 03:13:05,988 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 03:13:05,988 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:13:05,988 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 03:13:05,988 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 03:13:05,988 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:13:05,989 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 03:13:05,989 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:13:05,989 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:13:05,989 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 03:13:05,989 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:13:05,989 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 03:13:05,992 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0881-3B23D0FF.tmp 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0881-3B23D0FF.v1 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0881-3B23D0FF.v1 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:05.992203007Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0881-3B23D0FF.v1, size=419, entryCompress=NONE, stateCompress=NONE} 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.232 ms, resetting timer for the next recovery snapshot 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 123.8 μs with journalIndex=1 03:13:05,995 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 03:13:05,996 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 03:13:05,996 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 4 commands after 7.921 ms 03:13:06,1 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 03:13:06,1 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 4 completion(s) pending 03:13:06,1 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 4 commands in 4.731 ms 03:13:06,1 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 4 completion(s) 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c6f40@2d2355e4} 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c6f40@2d2355e4} 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c6f40@2d2355e4} 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.166 ms 03:13:06,1 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 03:13:06,1 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0882-0016BA2D.tmp 03:13:06,1 PM [test-pekko.actor.default-dispatcher-15] [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'. [WARN] [08/11/2025 15:13:06.001] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 15:13:06.001] [test-pekko.actor.default-dispatcher-15] [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'. 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0882-0016BA2D.v1 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0881-3B23D0FF.v1 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0882-0016BA2D.v1 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:05.992203007Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0881-3B23D0FF.v1, size=419, entryCompress=NONE, stateCompress=NONE} 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T15:13:06.001489453Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0882-0016BA2D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d102777] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:13:06,3 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:13:06,3 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-11T15:13:06.001489453Z 03:13:06,3 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 03:13:06,3 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.251 ms 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 95.86 μs 03:13:06,3 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 03:13:06,3 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 03:13:06,147 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0882-0016BA2D.v1 03:13:06,148 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 03:13:06,148 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 03:13:06,148 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 03:13:06,148 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-11T15:13:06.001489453Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12064585858655097165/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689A0882-0016BA2D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 03:13:06,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-446210755] 03:13:06,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1190763590] 03:13:06,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#-126497775] 03:13:06,161 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 03:13:06,161 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#847,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129]/waiting 03:13:06,161 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 158.1 ms 03:13:06,161 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 35.32 μs 03:13:06,161 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-129] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 03:13:06,162 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:13:06,162 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 03:13:06,162 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:13:06,162 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 03:13:06,167 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 03:13:06,167 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,168 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 03:13:06,169 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]]} 03:13:06,169 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 03:13:06,169 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} 03:13:06,170 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 03:13:06,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1900143290] 03:13:06,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#845679618] 03:13:06,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-1456361718] 03:13:06,183 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 03:13:06,183 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,184 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 03:13:06,185 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 03:13:06,185 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 03:13:06,185 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 03:13:06,185 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 03:13:06,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-494801062] 03:13:06,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#478985448] 03:13:06,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-79496691] 03:13:06,198 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 03:13:06,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,199 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 03:13:06,199 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]]} 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:13:06,200 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:13:06,200 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 03:13:06,200 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 03:13:06,200 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} 03:13:06,201 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:13:06,201 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 03:13:06,201 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:13:06,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:13:06,201 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:13:06,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:13:06,201 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:13:06,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:13:06,201 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:13:06,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:13:06,202 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1138213552] 03:13:06,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#865571069] 03:13:06,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-224799907] 03:13:06,215 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 03:13:06,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,216 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 03:13:06,216 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 03:13:06,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#560841254] 03:13:06,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1536174579] 03:13:06,228 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-636961187] 03:13:06,231 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 03:13:06,231 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,232 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:13:06,232 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:13:06,232 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:13:06,232 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:13:06,232 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 03:13:06,233 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]]} 03:13:06,233 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 03:13:06,233 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:06,233 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 03:13:06,233 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 03:13:06,233 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 03:13:06,233 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 03:13:06,233 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} 03:13:06,233 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 03:13:06,234 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 03:13:06,234 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:13:06,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:13:06,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#66960251] 03:13:06,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#350536688] 03:13:06,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-1183538225] 03:13:06,247 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 03:13:06,247 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,248 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 03:13:06,249 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]]} 03:13:06,249 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 03:13:06,249 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} 03:13:06,249 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 03:13:06,249 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 03:13:06,250 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]]} 03:13:06,250 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 03:13:06,250 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} 03:13:06,250 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 03:13:06,251 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 03:13:06,251 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]]} 03:13:06,251 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 03:13:06,251 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} 03:13:06,252 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 03:13:06,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-2086050029] 03:13:06,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#587366843] 03:13:06,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-1197097659] 03:13:06,265 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 03:13:06,265 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,465 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:13:06,465 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.188:17355, Removed) 03:13:06,465 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 03:13:06,465 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:13:06,465 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:13:06,465 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:13:06,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#216261715] 03:13:06,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#150074376] 03:13:06,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1732696145] 03:13:06,480 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,480 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 03:13:06,681 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:13:06,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-503372187] 03:13:06,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-729693249] 03:13:06,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#1597585542] 03:13:06,695 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 03:13:06,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,698 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 03:13:06,698 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 03:13:06,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1036317635] 03:13:06,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-1903196547] 03:13:06,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-1806146562] 03:13:06,715 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 03:13:06,715 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,716 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]]} 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 03:13:06,717 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} 03:13:06,717 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 03:13:06,717 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 03:13:06,717 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:13:06,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:13:06,717 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 03:13:06,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 03:13:06,717 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 03:13:06,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 03:13:06,717 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 03:13:06,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 03:13:06,718 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 03:13:06,718 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 03:13:06,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-2042365701] 03:13:06,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-38419232] 03:13:06,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-1833770062] 03:13:06,731 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 03:13:06,732 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,732 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 03:13:06,733 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 03:13:06,733 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 03:13:06,733 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 03:13:06,733 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]]} 03:13:06,734 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} 03:13:06,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1643064912] 03:13:06,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1625200925] 03:13:06,745 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-998687219] 03:13:06,746 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 03:13:06,746 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:06,747 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 03:13:06,747 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]]} 03:13:06,748 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 03:13:06,748 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 03:13:06,748 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 03:13:06,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#958201580] 03:13:06,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1521952206] 03:13:06,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1336616954] 03:13:06,761 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/11/2025 15:13:06.761] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@13de478d [INFO] [pekkoDeadLetter][08/11/2025 15:13:06.761] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 03:13:06,762 PM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 03:13:06,762 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:13:06,762 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:13:06,762 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:13:06,762 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 03:13:06,763 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 03:13:06,763 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 03:13:06,763 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:13:06,763 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:13:06,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 03:13:06,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:13:06,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:13:06,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 03:13:06,764 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:06,764 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:13:06,766 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.tmp 03:13:06,769 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1 03:13:06,769 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:06.766751774Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1, size=419, entryCompress=NONE, stateCompress=NONE} 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 3.472 ms, resetting timer for the next recovery snapshot 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 155.6 μs with journalIndex=1 03:13:06,770 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 03:13:06,770 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 03:13:06,871 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1 03:13:06,872 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:13:06,872 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:13:06,872 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:13:06,872 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:06.766751774Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 03:13:06,872 PM [test-pekko.actor.default-dispatcher-15] [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]]} 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 03:13:06,873 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 110.2 ms 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [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} 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 03:13:06,873 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 03:13:06,874 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 03:13:06,874 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 03:13:06,874 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 03:13:06,874 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 03:13:06,874 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 03:13:06,877 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:13:06,877 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:13:06,877 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.951 ms 03:13:06,877 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 03:13:06,877 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08c6f40@2e251fc} 03:13:06,877 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 5.110 μs 03:13:06,877 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 03:13:06,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 03:13:06,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 03:13:06,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.824 ms 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 03:13:06,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08c6f40@2e251fc} 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [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] 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [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/0x00000007c08c6f40@2e251fc} 03:13:06,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.501 ms 03:13:06,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.tmp [WARN] [08/11/2025 15:13:06.879] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/11/2025 15:13:06.880] [test-pekko.actor.default-dispatcher-15] [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'. 03:13:06,880 PM [test-pekko.actor.default-dispatcher-12] [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'. 03:13:06,881 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1 03:13:06,881 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1 03:13:06,881 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:13:06,881 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:13:06,881 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1 03:13:06,881 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-11T15:13:06.766751774Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-2DB3B41E.v1, size=419, entryCompress=NONE, stateCompress=NONE} 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T15:13:06.879512465Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1, size=573, entryCompress=NONE, stateCompress=NONE} 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d819963] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:13:06,882 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:13:06,882 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-11T15:13:06.879512465Z 03:13:06,882 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 03:13:06,882 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.030 ms 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 177.8 μs 03:13:06,882 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:13:06,882 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 03:13:07,125 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:13:07,125 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:13:07,125 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1 03:13:07,125 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:13:07,125 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T15:13:06.879512465Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:13:07,127 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:13:07,138 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#850,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130]/waiting 03:13:07,138 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 256.2 ms 03:13:07,138 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 33.65 μs 03:13:07,138 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-130] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:13:07,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:13:07,139 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:13:07,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:13:07,139 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/11/2025 15:13:07.140] [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@d7757ce [INFO] [pekkoDeadLetter][08/11/2025 15:13:07.140] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 03:13:07,140 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'. 03:13:07,141 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 03:13:07,141 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:13:07,141 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 03:13:07,142 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 03:13:07,142 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 03:13:07,142 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 03:13:07,142 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 03:13:07,142 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-11T15:13:06.879512465Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13599313787838699893/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689A0882-346C4B91.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 03:13:07,144 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-11T15:13:06.879512465Z 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 124.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 218.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 164.9 μs with journalIndex=4 03:13:07,145 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 03:13:07,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-391905894] 03:13:07,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#1481561158] 03:13:07,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#2073914413] 03:13:07,157 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 03:13:07,157 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#855,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131]/waiting 03:13:07,157 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.62 ms 03:13:07,157 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 27.00 μs 03:13:07,157 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-131] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 03:13:07,157 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:13:07,157 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 03:13:07,157 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:13:07,157 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 03:13:07,160 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 03:13:07,160 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:07,461 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 03:13:07,591 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:13:07,591 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 03:13:07,841 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 03:13:08,42 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 03:13:08,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1292578943] 03:13:08,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-449011722] 03:13:08,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#365577683] 03:13:08,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,57 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 03:13:08,57 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 03:13:08,57 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 03:13:08,57 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 03:13:08,58 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 03:13:08,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1835858523] 03:13:08,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#2010776185] 03:13:08,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1849150438] 03:13:08,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,73 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 03:13:08,73 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 03:13:08,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1863789144] 03:13:08,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#1094725411] 03:13:08,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1181210526] 03:13:08,87 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,88 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]]} 03:13:08,88 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 03:13:08,88 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 03:13:08,88 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 03:13:08,88 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 03:13:08,88 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 03:13:08,88 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} 03:13:08,89 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 03:13:08,89 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 03:13:08,89 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 03:13:08,89 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:13:08,89 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 03:13:08,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-279536735] 03:13:08,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#781160864] 03:13:08,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1429029944] 03:13:08,102 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,104 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 03:13:08,105 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 03:13:08,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#1186265260] 03:13:08,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-312101403] 03:13:08,116 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-934587995] 03:13:08,118 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,119 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 03:13:08,119 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 03:13:08,120 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} 03:13:08,120 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 03:13:08,121 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 03:13:08,122 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 03:13:08,122 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 03:13:08,122 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. 03:13:08,122 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 03:13:08,123 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 03:13:08,123 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 03:13:08,124 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 03:13:08,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-200623726] 03:13:08,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1948045351] 03:13:08,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-1096784863] 03:13:08,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:13:08,139 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 03:13:08,139 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,139 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 03:13:08,139 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:13:08,140 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:13:08,140 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 03:13:08,140 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 03:13:08,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-2141328399] 03:13:08,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-1450902394] 03:13:08,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-712625058] 03:13:08,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,155 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 03:13:08,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1055453066] 03:13:08,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1013096050] 03:13:08,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1972104228] 03:13:08,169 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 03:13:08,170 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 03:13:08,170 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 03:13:08,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1790022548] 03:13:08,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1024989232] 03:13:08,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1579836223] [INFO] [08/11/2025 15:13:08.182] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 03:13:08,182 PM [test-pekko.actor.default-dispatcher-14] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/11/2025 15:13:08.183] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.188:17355) 03:13:08,183 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#524173231] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/11/2025 15:13:08.183] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#524173231] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [08/11/2025 15:13:08.183] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - Exiting completed 03:13:08,183 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - Exiting completed [INFO] [08/11/2025 15:13:08.183] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - Shutting down... 03:13:08,183 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - Shutting down... [INFO] [08/11/2025 15:13:08.183] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.188:17355] - Successfully shut down 03:13:08,183 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.188:17355] - Successfully shut down [INFO] [08/11/2025 15:13:08.186] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.188:17355/system/remoting-terminator] Shutting down remote daemon. 03:13:08,186 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 03:13:08,186 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 15:13:08.186] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.188:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/11/2025 15:13:08.188] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.188:17355/system/remoting-terminator] Remoting shut down. 03:13:08,188 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/11/2025 15:13:08.188] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger