[DEBUG] [07/02/2025 17:37:03.370] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:37:03,370 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 17:37:03.371] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 17:37:03.371] [main] [EventStream(pekko://test)] Default Loggers started 05:37:03,383 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.202:17355] with UID [5329138247313866201] [INFO] [07/02/2025 17:37:03.383] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.202:17355] with UID [5329138247313866201] [INFO] [07/02/2025 17:37:03.384] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - Starting up, Pekko version [1.0.3] ... 05:37:03,384 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/02/2025 17:37:03.392] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 17:37:03.392] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - Started up successfully 05:37:03,392 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 05:37:03,392 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - Started up successfully [INFO] [07/02/2025 17:37:03.398] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:37:03,398 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:37:03,398 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/02/2025 17:37:03.398] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:37:03,406 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:37:03,407 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,531 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:37:03,531 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:37:03,531 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:37:03,532 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:37:03,533 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:37:03,533 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:37:03,533 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:37:03,533 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:37:03,539 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:37:03,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-1968207195] 05:37:03,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1367049532] 05:37:03,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-41385367] 05:37:03,544 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:37:03,544 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,546 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]]} 05:37:03,546 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 05:37:03,547 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} 05:37:03,547 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:37:03,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#374315573] 05:37:03,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1049134525] 05:37:03,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-1292981264] 05:37:03,550 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:37:03,550 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,550 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:37:03,551 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:37:03,551 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:37:03,551 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:37:03,551 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:37:03,551 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:37:03,551 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:37:03,552 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:37:03,553 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 05:37:03,553 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]]} 05:37:03,553 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 05:37:03,554 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} 05:37:03,554 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:37:03,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1893280766] 05:37:03,555 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-663736649] 05:37:03,555 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#330978551] 05:37:03,556 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,556 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:37:03,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1734008870] 05:37:03,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-2079358788] 05:37:03,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1203779681] 05:37:03,559 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:37:03,559 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,560 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 05:37:03,560 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]]} 05:37:03,560 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:03,560 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:37:03,564 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:37:03,564 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:37:03,564 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:37:03,564 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} 05:37:03,564 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,564 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:37:03,566 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:37:03,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#628104745] 05:37:03,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1245378284] 05:37:03,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1601064382] 05:37:03,568 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:37:03,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,569 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]]} 05:37:03,569 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:03,570 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:37:03,570 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:37:03,570 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:37:03,570 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:37:03,570 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} 05:37:03,570 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:37:03,570 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:37:03,570 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:37:03,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:37:03,570 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:37:03,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:37:03,571 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]]} 05:37:03,571 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:37:03,571 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:37:03,571 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:37:03,571 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:37:03,571 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:37:03,571 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:37:03,572 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} 05:37:03,572 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:37:03,572 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:37:03,572 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:37:03,572 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:37:03,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-507100329] 05:37:03,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#-1808507350] 05:37:03,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-856696352] 05:37:03,575 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:37:03,575 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,576 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 05:37:03,576 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 05:37:03,576 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} 05:37:03,577 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:37:03,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-1908307794] 05:37:03,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-695356246] 05:37:03,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#1577038780] 05:37:03,579 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#56319704] 05:37:03,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-944903053] 05:37:03,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1758956379] 05:37:03,583 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:37:03,583 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,583 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:37:03,584 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 05:37:03,584 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]]} 05:37:03,584 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:03,584 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:37:03,584 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:37:03,584 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:37:03,584 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:37:03,584 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} 05:37:03,584 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,584 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:37:03,585 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:37:03,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:37:03,585 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:37:03,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-295172615] 05:37:03,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#1488655161] 05:37:03,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#595498881] 05:37:03,587 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/02/2025 17:37:03.589] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@65c1af4a 05:37:03,590 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 05:37:03,591 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:37:03,591 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][07/02/2025 17:37:03.590] [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'. 05:37:03,591 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:37:03,592 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 05:37:03,592 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:37:03,592 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 05:37:03,592 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 05:37:03,592 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:37:03,597 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:37:03,597 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:37:03,597 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:37:03,598 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:37:03,598 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:37:03,598 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 05:37:03,602 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:37:03,602 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:37:03,602 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5bcc04f4 05:37:03,602 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 05:37:03,602 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 05:37:03,602 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:37:03,603 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 327.5 μs with journalIndex=1 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 05:37:03,604 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 12.04 ms 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:37:03,604 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:37:03,605 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:37:03,605 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:37:03,605 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:37:03,605 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two [WARN] [07/02/2025 17:37:03.606] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 17:37:03.606] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:37:03,606 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:37:03,608 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:37:03,608 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.802 ms 05:37:03,608 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.850 μs 05:37:03,608 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:37:03,608 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:37:03,610 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 05:37:03,610 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 05:37:03,610 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.544 ms 05:37:03,610 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:37:03,610 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 05:37:03,610 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068656E3F-246745DC.tmp 05:37:03,614 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068656E3F-246745DC.v1 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068656E3F-246745DC.v1 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T17:37:03.610747868Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068656E3F-246745DC.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d70213] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:37:03,615 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:37:03,615 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-02T17:37:03.610747868Z 05:37:03,615 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.428 ms 05:37:03,615 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 114.5 μs 05:37:03,615 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 05:37:03,615 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:37:03,705 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068656E3F-246745DC.v1 05:37:03,706 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:37:03,706 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 05:37:03,706 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 05:37:03,706 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T17:37:03.610747868Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15993047321116665042/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068656E3F-246745DC.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:37:03,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-1138793325] 05:37:03,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-549225473] 05:37:03,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#104990338] 05:37:03,715 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:37:03,715 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#836,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 05:37:03,715 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 100.1 ms 05:37:03,716 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 23.84 μs 05:37:03,716 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 05:37:03,716 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 05:37:03,716 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 05:37:03,716 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:37:03,716 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:37:03,723 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1264630283] 05:37:03,726 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-1587886035] 05:37:03,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#646992072] 05:37:03,731 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:37:03,731 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,732 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 05:37:03,732 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:37:03,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1794265126] 05:37:03,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#1565427416] 05:37:03,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#1482580795] 05:37:03,740 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:37:03,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,741 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 05:37:03,741 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]]} 05:37:03,741 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:03,741 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:37:03,741 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:37:03,741 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:37:03,741 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:37:03,742 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} 05:37:03,742 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,742 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:37:03,742 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:37:03,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1758618777] 05:37:03,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1750852010] 05:37:03,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-139396467] 05:37:03,745 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:37:03,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,746 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 05:37:03,746 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]]} 05:37:03,746 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 05:37:03,746 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} 05:37:03,747 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,747 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:37:03,747 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]]} 05:37:03,747 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 05:37:03,747 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} 05:37:03,747 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:37:03,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-2098971930] 05:37:03,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#364362757] 05:37:03,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1810890027] 05:37:03,750 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#2011348591] 05:37:03,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1958947807] 05:37:03,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-554111165] 05:37:03,754 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:37:03,754 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,754 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 05:37:03,754 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]]} 05:37:03,754 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 05:37:03,755 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} 05:37:03,755 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:37:03,756 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]]} 05:37:03,756 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 05:37:03,756 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} 05:37:03,756 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:37:03,757 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]]} 05:37:03,757 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 05:37:03,757 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} 05:37:03,757 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:37:03,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#743945146] 05:37:03,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1944839029] 05:37:03,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1032538842] 05:37:03,760 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:37:03,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,761 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]]} 05:37:03,761 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:03,761 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:37:03,761 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:37:03,761 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:37:03,762 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:37:03,762 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} 05:37:03,762 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:37:03,762 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:37:03,762 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:37:03,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1516282633] 05:37:03,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-2012197542] 05:37:03,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#2115419194] 05:37:03,765 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:37:03,765 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,766 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:37:03,767 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader473 05:37:03,767 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader473 05:37:03,768 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:37:03,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-672898917] 05:37:03,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-461482833] 05:37:03,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#18748491] 05:37:03,773 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:37:03,773 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,774 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 05:37:03,774 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]]} 05:37:03,774 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:03,774 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:37:03,774 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:37:03,774 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:37:03,774 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:37:03,775 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} 05:37:03,775 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,775 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:37:03,775 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:37:03,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#482841615] 05:37:03,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-504018691] 05:37:03,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-35537936] 05:37:03,778 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:37:03,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:03,778 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 05:37:03,779 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]]} 05:37:03,779 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 05:37:03,779 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} 05:37:03,779 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:03,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1536455964] 05:37:03,781 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#742088804] 05:37:03,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-416279412] 05:37:03,784 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/02/2025 17:37:03.785] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@322e648d [INFO] [pekkoDeadLetter][07/02/2025 17:37:03.785] [test-pekko.actor.default-dispatcher-11] [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'. 05:37:03,785 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'. 05:37:03,786 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:37:03,786 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:37:03,786 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:37:03,787 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 05:37:03,788 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:37:03,788 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 05:37:03,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 05:37:03,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:37:03,791 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:37:03,792 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:37:03,792 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:37:03,792 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:37:03,792 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:37:03,792 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 05:37:03,797 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:37:03,797 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 05:37:03,797 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@62d05232 05:37:03,797 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 05:37:03,797 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 05:37:03,798 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:37:03,798 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 372.5 μs with journalIndex=1 05:37:03,800 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]]} 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:37:03,801 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} 05:37:03,801 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 12.71 ms 05:37:03,801 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 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:37:03,801 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:37:03,802 PM [test-pekko.actor.default-dispatcher-11] [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] [07/02/2025 17:37:03.802] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 17:37:03.802] [test-pekko.actor.default-dispatcher-11] [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'. 05:37:03,804 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:37:03,805 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.639 ms 05:37:03,805 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 3.370 μs 05:37:03,805 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:37:03,805 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:37:03,808 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 05:37:03,808 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 05:37:03,808 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 3.022 ms 05:37:03,808 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:37:03,808 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 05:37:03,808 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068656E3F-302FBA9E.tmp 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068656E3F-302FBA9E.v1 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068656E3F-302FBA9E.v1 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T17:37:03.808434334Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068656E3F-302FBA9E.v1, size=539, entryCompress=NONE, stateCompress=NONE} 05:37:03,810 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d713165] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:37:03,810 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:37:03,810 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-02T17:37:03.808434334Z 05:37:03,810 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 05:37:03,811 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.880 ms 05:37:03,811 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:37:03,811 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 05:37:03,811 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 05:37:03,811 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:37:03,811 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 115.9 μs 05:37:03,811 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 05:37:03,811 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:37:03,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068656E3F-302FBA9E.v1 05:37:03,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:37:03,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 05:37:03,904 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 05:37:03,904 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T17:37:03.808434334Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13902793220639661577/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068656E3F-302FBA9E.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 05:37:04,114 PM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 05:37:08,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-68995525] 05:37:08,916 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-139985008] 05:37:08,916 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1615685436] 05:37:08,916 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:37:08,916 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#841,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 05:37:08,916 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.106 s 05:37:08,916 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 13.25 μs 05:37:08,916 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 05:37:08,916 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 05:37:08,916 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 05:37:08,917 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:37:08,917 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:37:08,921 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:37:08,921 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:08,922 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 05:37:08,923 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]]} 05:37:08,923 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 05:37:08,924 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} 05:37:08,924 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:37:08,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#64425990] 05:37:08,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1735494785] 05:37:08,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1417278904] 05:37:08,937 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:37:08,937 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:08,937 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 05:37:08,938 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:37:08,938 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:37:08,938 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:37:08,938 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:37:08,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-27708053] 05:37:08,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#335753932] 05:37:08,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#851585263] 05:37:08,952 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:37:08,952 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:08,953 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 05:37:08,953 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]]} 05:37:08,953 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:37:08,954 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:37:08,954 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:37:08,954 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} 05:37:08,954 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:37:08,954 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:37:08,955 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:37:08,955 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:37:08,955 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:37:08,955 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:37:08,955 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:37:08,955 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:37:08,955 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:37:08,955 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:37:08,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-1770459528] 05:37:08,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#202886647] 05:37:08,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1482365767] 05:37:08,969 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:37:08,969 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:08,970 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:37:08,970 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:37:08,971 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#634797209] 05:37:08,982 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#813647329] 05:37:08,982 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1333914344] 05:37:08,985 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:37:08,985 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:08,986 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:37:08,986 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:37:08,986 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:37:08,986 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:37:08,987 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 05:37:08,987 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]]} 05:37:08,987 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 05:37:08,987 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:08,988 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:37:08,988 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:37:08,988 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:37:08,988 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:37:08,988 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} 05:37:08,988 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:37:08,988 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:37:08,988 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:37:08,988 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:37:08,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-336243697] 05:37:08,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1558236778] 05:37:09,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#692705849] 05:37:09,2 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:37:09,2 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,3 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 05:37:09,4 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]]} 05:37:09,4 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 05:37:09,4 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} 05:37:09,5 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:37:09,5 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:37:09,5 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]]} 05:37:09,5 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 05:37:09,6 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} 05:37:09,6 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:37:09,6 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:37:09,6 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]]} 05:37:09,6 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 05:37:09,7 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} 05:37:09,7 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:37:09,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#2017456970] 05:37:09,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#216149902] 05:37:09,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-2000025439] 05:37:09,19 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:37:09,20 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,220 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:37:09,220 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.202:17355, Removed) 05:37:09,220 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:37:09,220 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:37:09,220 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:37:09,220 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:37:09,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#1445342541] 05:37:09,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#165105868] 05:37:09,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1377408605] 05:37:09,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,234 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:37:09,436 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:37:09,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-694964238] 05:37:09,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1969703227] 05:37:09,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-667305421] 05:37:09,451 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:37:09,451 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,453 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 05:37:09,454 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:37:09,454 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-1408884092] 05:37:09,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1624339932] 05:37:09,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-2060468606] 05:37:09,456 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:37:09,456 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,457 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]]} 05:37:09,457 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:37:09,457 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:37:09,457 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:37:09,457 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:37:09,457 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:37:09,457 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:37:09,458 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} 05:37:09,458 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:37:09,458 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:37:09,458 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:37:09,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:37:09,458 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:37:09,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:37:09,458 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:37:09,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:37:09,458 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:37:09,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:37:09,458 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:37:09,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:37:09,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#2042983186] 05:37:09,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-340722803] 05:37:09,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-523726558] 05:37:09,461 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:37:09,461 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,462 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:37:09,462 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:37:09,462 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:37:09,462 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:37:09,462 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]]} 05:37:09,463 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} 05:37:09,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1971564622] 05:37:09,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-1577434335] 05:37:09,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-2080062168] 05:37:09,466 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:37:09,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:09,467 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 05:37:09,467 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]]} 05:37:09,467 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:37:09,468 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:37:09,468 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:37:09,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1989639826] 05:37:09,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1169788835] 05:37:09,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-251363611] 05:37:09,481 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/02/2025 17:37:09.482] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@51e7abc2 [INFO] [pekkoDeadLetter][07/02/2025 17:37:09.482] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 05:37:09,482 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:37:09,483 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:37:09,483 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:37:09,483 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:37:09,484 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 05:37:09,484 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 05:37:09,484 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 05:37:09,484 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 05:37:09,484 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:37:09,486 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:37:09,487 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:37:09,487 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:37:09,487 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:37:09,487 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:37:09,487 PM [test-pekko.actor.default-dispatcher-11] [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 05:37:09,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:37:09,491 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:37:09,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5747ddca 05:37:09,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 05:37:09,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 05:37:09,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 05:37:09,492 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 424.2 μs with journalIndex=1 05:37:09,492 PM [test-pekko.actor.default-dispatcher-12] [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]]} 05:37:09,492 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:37:09,492 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:37:09,492 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:37:09,492 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:37:09,493 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 8.080 ms 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [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} 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:37:09,493 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three [WARN] [07/02/2025 17:37:09.494] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 17:37:09.494] [test-pekko.actor.default-dispatcher-11] [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'. 05:37:09,494 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:37:09,497 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:37:09,497 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.968 ms 05:37:09,497 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.820 μs 05:37:09,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:37:09,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:37:09,500 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 05:37:09,500 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 05:37:09,500 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 3.650 ms 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 05:37:09,500 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [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] 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:37:09,500 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:37:09,501 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:37:09,501 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 05:37:09,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068656E45-1DDC3CA6.tmp 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068656E45-1DDC3CA6.v1 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068656E45-1DDC3CA6.v1 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T17:37:09.500972710Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068656E45-1DDC3CA6.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:37:09,503 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d747951] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:37:09,503 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:37:09,503 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-02T17:37:09.500972710Z 05:37:09,503 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 05:37:09,504 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:37:09,504 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.260 ms 05:37:09,504 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 05:37:09,504 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 05:37:09,504 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:37:09,504 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 162.8 μs 05:37:09,504 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:37:09,504 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 05:37:09,644 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068656E45-1DDC3CA6.v1 05:37:09,644 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:37:09,644 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 05:37:09,644 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 05:37:09,644 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T17:37:09.500972710Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2209183725067330110/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068656E45-1DDC3CA6.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:37:09,804 PM [test-pekko.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 05:37:14,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-2021296404] 05:37:14,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-108918884] 05:37:14,657 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1890811391] 05:37:14,657 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:37:14,657 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#844,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 05:37:14,657 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 5.153 s 05:37:14,657 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 12.90 μs 05:37:14,657 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 05:37:14,657 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:37:14,657 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 05:37:14,657 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:37:14,657 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:37:14,663 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:37:14,663 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:14,963 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:37:15,94 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:37:15,94 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:37:15,344 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:37:15,544 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:37:15,545 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-1386197222] 05:37:15,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1269369833] 05:37:15,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-2014002415] 05:37:15,559 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,560 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:37:15,560 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:37:15,560 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:37:15,560 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:37:15,560 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:37:15,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#192014823] 05:37:15,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-544359198] 05:37:15,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-299942390] 05:37:15,577 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,579 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 05:37:15,579 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:37:15,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-1222530555] 05:37:15,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1092747317] 05:37:15,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-620783106] 05:37:15,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,586 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]]} 05:37:15,586 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:37:15,586 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:37:15,586 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:37:15,586 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:37:15,586 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:37:15,586 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} 05:37:15,586 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:37:15,587 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:37:15,587 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:37:15,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:37:15,587 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:37:15,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1836088478] 05:37:15,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1862641781] 05:37:15,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#244422298] 05:37:15,591 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,592 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 05:37:15,592 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:37:15,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#99089549] 05:37:15,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-2090194406] 05:37:15,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1514500553] 05:37:15,609 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,609 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 05:37:15,610 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 05:37:15,610 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} 05:37:15,611 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:37:15,611 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 05:37:15,612 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:37:15,612 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:37:15,612 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. 05:37:15,612 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 05:37:15,613 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 05:37:15,613 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:37:15,614 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:37:15,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1811262174] 05:37:15,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#2049294548] 05:37:15,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1063322563] 05:37:15,628 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,629 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:37:15,629 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:37:15,629 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,629 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:37:15,630 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:37:15,630 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:37:15,630 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:37:15,630 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:37:15,630 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1673845085] 05:37:15,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-1273218257] 05:37:15,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1951072005] 05:37:15,633 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,634 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:37:15,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-307930257] 05:37:15,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#1812904636] 05:37:15,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-813070586] 05:37:15,637 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:37:15,638 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 05:37:15,638 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:37:15,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1554743848] 05:37:15,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-1472809973] 05:37:15,639 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-1482435365] [INFO] [07/02/2025 17:37:15.639] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:37:15,640 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/02/2025 17:37:15.640] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.202:17355) [INFO] [pekkoDeadLetter][07/02/2025 17:37:15.640] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1333078287] was unhandled. [7] 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'. 05:37:15,641 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1333078287] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [07/02/2025 17:37:15.641] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - Exiting completed [INFO] [07/02/2025 17:37:15.641] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - Shutting down... 05:37:15,641 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - Exiting completed 05:37:15,642 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - Shutting down... 05:37:15,642 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.202:17355] - Successfully shut down [INFO] [07/02/2025 17:37:15.641] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.202:17355] - Successfully shut down [INFO] [07/02/2025 17:37:15.643] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.202:17355/system/remoting-terminator] Shutting down remote daemon. 05:37:15,643 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 05:37:15,643 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 17:37:15.643] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.202:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/02/2025 17:37:15.645] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.202:17355/system/remoting-terminator] Remoting shut down. 05:37:15,646 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/02/2025 17:37:15.646] [test-pekko.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger