[DEBUG] [07/04/2025 09:09:27.307] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:09:27,308 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/04/2025 09:09:27.308] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/04/2025 09:09:27.308] [main] [EventStream(pekko://test)] Default Loggers started 09:09:27,337 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.23:17355] with UID [-5659731701038008759] 09:09:27,337 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Starting up, Pekko version [1.0.3] ... 09:09:27,339 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:09:27,339 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Started up successfully [INFO] [07/04/2025 09:09:27.336] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.23:17355] with UID [-5659731701038008759] [INFO] [07/04/2025 09:09:27.336] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/04/2025 09:09:27.339] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/04/2025 09:09:27.339] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Started up successfully [INFO] [07/04/2025 09:09:27.341] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/04/2025 09:09:27.341] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:09:27,341 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:09:27,341 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:09:27,350 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:09:27,350 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,441 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:09:27,442 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:09:27,442 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:09:27,443 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:09:27,444 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:09:27,444 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:09:27,444 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:09:27,444 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:09:27,447 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:09:27,447 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#2019423700] 09:09:27,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-574569907] 09:09:27,459 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-1660095729] 09:09:27,461 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:09:27,461 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,463 AM [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]]} 09:09:27,463 AM [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 09:09:27,464 AM [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} 09:09:27,464 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:09:27,465 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#192528626] 09:09:27,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1526650823] 09:09:27,476 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#481226071] 09:09:27,477 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:09:27,477 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,477 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:09:27,478 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:09:27,478 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:09:27,478 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:09:27,478 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:09:27,478 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:09:27,479 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:09:27,479 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:09:27,480 AM [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 09:09:27,481 AM [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]]} 09:09:27,481 AM [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 09:09:27,482 AM [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} 09:09:27,482 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:09:27,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1475419389] 09:09:27,493 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1404756579] 09:09:27,493 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1586591316] 09:09:27,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,495 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:09:27,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1487536882] 09:09:27,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-109573644] 09:09:27,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#2069698698] 09:09:27,508 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:09:27,508 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,509 AM [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 09:09:27,509 AM [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]]} 09:09:27,510 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:27,510 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:09:27,510 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:09:27,510 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:09:27,510 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:09:27,510 AM [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} 09:09:27,510 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,511 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:09:27,512 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:09:27,513 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#1955200659] 09:09:27,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1710029640] 09:09:27,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1684328914] 09:09:27,525 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:09:27,526 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,527 AM [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]]} 09:09:27,527 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:27,527 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:09:27,527 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:09:27,527 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:09:27,527 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:09:27,527 AM [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} 09:09:27,528 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:09:27,528 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:09:27,528 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:09:27,528 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:09:27,528 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:09:27,528 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:09:27,529 AM [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]]} 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:09:27,530 AM [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} 09:09:27,530 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:09:27,530 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:09:27,531 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:09:27,531 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:09:27,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#516826072] 09:09:27,542 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1757165480] 09:09:27,542 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#423349323] 09:09:27,544 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:09:27,544 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,545 AM [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 09:09:27,546 AM [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 09:09:27,546 AM [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} 09:09:27,546 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:09:27,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#1548347103] 09:09:27,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-513407375] 09:09:27,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1674214760] 09:09:27,560 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-126506945] 09:09:27,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#1411796268] 09:09:27,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1137904363] 09:09:27,577 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:09:27,577 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,577 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:09:27,577 AM [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 09:09:27,578 AM [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]]} 09:09:27,578 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:27,579 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:09:27,579 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:09:27,579 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:09:27,579 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:09:27,579 AM [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} 09:09:27,579 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,579 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:09:27,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:09:27,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:09:27,580 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:09:27,580 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#884122622] 09:09:27,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#1830174676] 09:09:27,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#2024975184] 09:09:27,596 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/04/2025 09:09:27.599] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@167e0224 [INFO] [pekkoDeadLetter][07/04/2025 09:09:27.599] [test-pekko.actor.default-dispatcher-11] [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'. 09:09:27,600 AM [test-pekko.actor.default-dispatcher-11] [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'. 09:09:27,603 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:09:27,603 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:09:27,603 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:09:27,604 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:09:27,604 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:09:27,605 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 09:09:27,605 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 09:09:27,605 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:09:27,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:09:27,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:09:27,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:09:27,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:09:27,606 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:27,606 AM [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 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:09:27,611 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 129.9 μs with journalIndex=1 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:09:27,612 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 7.431 ms 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:09:27,612 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:09:27,620 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 09:09:27,620 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 8.177 ms 09:09:27,620 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 09:09:27,620 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.460 μs 09:09:27,620 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:09:27,620 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@60030ae1} 09:09:27,620 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:09:27,620 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 09:09:27,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:09:27,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 149.3 μs 09:09:27,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 09:09:27,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068679A47-25072E95.tmp 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@60030ae1} 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 8.494 ms 09:09:27,621 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [07/04/2025 09:09:27.621] [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/04/2025 09:09:27.621] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:27,622 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068679A47-25072E95.v1 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068679A47-25072E95.v1 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-04T09:09:27.621227669Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068679A47-25072E95.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d600079] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:09:27,627 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:09:27,627 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-04T09:09:27.621227669Z 09:09:27,627 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.723 ms 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 102.0 μs 09:09:27,627 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:09:27,627 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:09:27,628 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:09:27,716 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068679A47-25072E95.v1 09:09:27,716 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:09:27,716 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:09:27,716 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:09:27,716 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-04T09:09:27.621227669Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15508104438559573760/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068679A47-25072E95.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:09:27,719 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-941966272] 09:09:27,720 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-1858452391] 09:09:27,720 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1788584529] 09:09:27,720 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:09:27,721 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#869,testCaptureSnapshotOnLastEntryInAppendEntries-writer-156]/waiting 09:09:27,721 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 93.31 ms 09:09:27,721 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 12.00 μs 09:09:27,721 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 09:09:27,721 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:09:27,721 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:09:27,721 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:09:27,721 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:09:27,724 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-291497880] 09:09:27,726 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-1726431124] 09:09:27,726 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-834746932] 09:09:27,728 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:09:27,728 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,729 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 09:09:27,729 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:09:27,730 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1328304894] 09:09:27,730 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#1623422296] 09:09:27,731 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1543118895] 09:09:27,733 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:09:27,733 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,733 AM [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 09:09:27,733 AM [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]]} 09:09:27,734 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:27,734 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:09:27,734 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:09:27,734 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:09:27,734 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:09:27,734 AM [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} 09:09:27,734 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,734 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:09:27,734 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:09:27,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1033214647] 09:09:27,735 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1701033146] 09:09:27,735 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-579841976] 09:09:27,738 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:09:27,738 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,739 AM [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 09:09:27,739 AM [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]]} 09:09:27,740 AM [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 09:09:27,740 AM [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} 09:09:27,740 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,741 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:09:27,742 AM [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]]} 09:09:27,742 AM [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 09:09:27,743 AM [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} 09:09:27,743 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:09:27,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1551257190] 09:09:27,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1231008731] 09:09:27,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#533567756] 09:09:27,747 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1377541219] 09:09:27,748 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-568201003] 09:09:27,748 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-139236375] 09:09:27,750 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:09:27,750 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,750 AM [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 09:09:27,751 AM [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]]} 09:09:27,751 AM [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 09:09:27,752 AM [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} 09:09:27,752 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,752 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:09:27,753 AM [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]]} 09:09:27,753 AM [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 09:09:27,753 AM [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} 09:09:27,753 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:09:27,754 AM [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]]} 09:09:27,754 AM [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 09:09:27,754 AM [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} 09:09:27,754 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:09:27,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-188030095] 09:09:27,755 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#807439518] 09:09:27,755 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#552718309] 09:09:27,757 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:09:27,757 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,758 AM [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]]} 09:09:27,758 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:27,758 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:09:27,758 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:09:27,758 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:09:27,758 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:09:27,759 AM [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} 09:09:27,759 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:09:27,759 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:09:27,759 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:09:27,759 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-1884067665] 09:09:27,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1556342365] 09:09:27,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1924670504] 09:09:27,761 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:09:27,762 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,763 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:09:27,763 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 09:09:27,763 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 09:09:27,764 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:09:27,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-1095355386] 09:09:27,766 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1955763718] 09:09:27,766 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#1660271717] 09:09:27,767 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:09:27,767 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,768 AM [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 09:09:27,768 AM [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]]} 09:09:27,768 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:27,768 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:09:27,768 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:09:27,768 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:09:27,768 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:09:27,768 AM [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} 09:09:27,769 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,769 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:09:27,769 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:09:27,769 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#2108710880] 09:09:27,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#2028737850] 09:09:27,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1273667228] 09:09:27,774 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:09:27,774 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,775 AM [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 09:09:27,776 AM [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]]} 09:09:27,776 AM [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 09:09:27,777 AM [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} 09:09:27,777 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:27,777 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#695320744] 09:09:27,788 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-1671684840] 09:09:27,788 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#925380160] 09:09:27,792 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/04/2025 09:09:27.793] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@65e2599e [INFO] [pekkoDeadLetter][07/04/2025 09:09:27.793] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:27,793 AM [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'. 09:09:27,793 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:09:27,793 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:09:27,794 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:09:27,794 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 09:09:27,794 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:09:27,794 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 09:09:27,794 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 09:09:27,794 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:09:27,795 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:09:27,796 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:09:27,796 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:09:27,796 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:09:27,796 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:09:27,796 AM [test-pekko.actor.default-dispatcher-11] [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 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 09:09:27,798 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 283.3 μs with journalIndex=1 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [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]]} 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [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} 09:09:27,799 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 4.874 ms 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:09:27,799 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:09:27,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 09:09:27,804 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 09:09:27,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 09:09:27,804 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.674 ms 09:09:27,804 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 2.540 μs 09:09:27,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:09:27,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@29fec663} 09:09:27,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:09:27,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@29fec663} 09:09:27,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 09:09:27,805 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 09:09:27,805 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 09:09:27,805 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.042 ms 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:09:27,805 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [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] 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@29fec663} 09:09:27,805 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068679A47-3006241F.tmp 09:09:27,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.811 ms 09:09:27,806 AM [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/04/2025 09:09:27.806] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/04/2025 09:09:27.806] [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'. 09:09:27,807 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068679A47-3006241F.v1 09:09:27,807 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:09:27,807 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:09:27,807 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068679A47-3006241F.v1 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-04T09:09:27.805708831Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068679A47-3006241F.v1, size=539, entryCompress=NONE, stateCompress=NONE} 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d765099] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:09:27,808 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:09:27,808 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-04T09:09:27.805708831Z 09:09:27,808 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 09:09:27,808 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.675 ms 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 116.1 μs 09:09:27,808 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:09:27,808 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:09:27,951 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:09:27,951 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:09:27,951 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068679A47-3006241F.v1 09:09:27,951 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:09:27,951 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-04T09:09:27.805708831Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4178839430925931723/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068679A47-3006241F.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 09:09:27,953 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1268138528] 09:09:27,964 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-2111275693] 09:09:27,964 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1272065124] 09:09:27,964 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:09:27,964 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#873,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157]/waiting 09:09:27,965 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.7 ms 09:09:27,965 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.22 μs 09:09:27,965 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 09:09:27,965 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:09:27,965 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:09:27,965 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:09:27,965 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:09:27,968 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:09:27,968 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,969 AM [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 09:09:27,970 AM [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]]} 09:09:27,970 AM [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 09:09:27,971 AM [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} 09:09:27,971 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:09:27,972 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-5158214] 09:09:27,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#116630971] 09:09:27,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1599229422] 09:09:27,987 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:09:27,987 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:27,987 AM [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 09:09:27,989 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:09:27,989 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:09:27,989 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:09:27,989 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:09:27,989 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1999729338] 09:09:28,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#835535206] 09:09:28,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1873326580] 09:09:28,3 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:09:28,3 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,4 AM [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 09:09:28,5 AM [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]]} 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:09:28,5 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:09:28,5 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:09:28,5 AM [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} 09:09:28,5 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:09:28,5 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:09:28,6 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:09:28,6 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:09:28,6 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:09:28,6 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:09:28,6 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:09:28,6 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:09:28,6 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:09:28,6 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:09:28,6 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1507395877] 09:09:28,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1304504512] 09:09:28,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1908253422] 09:09:28,19 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:09:28,19 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,20 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:09:28,20 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:09:28,21 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-1339409796] 09:09:28,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1660787427] 09:09:28,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#1645641911] 09:09:28,34 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:09:28,34 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,35 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:09:28,35 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:09:28,35 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:09:28,35 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:09:28,36 AM [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 09:09:28,37 AM [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]]} 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:09:28,37 AM [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} 09:09:28,37 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:09:28,37 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:09:28,37 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:09:28,37 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:09:28,38 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-110692241] 09:09:28,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-821163668] 09:09:28,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-799468764] 09:09:28,54 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:09:28,55 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,55 AM [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 09:09:28,56 AM [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]]} 09:09:28,56 AM [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 09:09:28,57 AM [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} 09:09:28,57 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:09:28,57 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:09:28,58 AM [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]]} 09:09:28,58 AM [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 09:09:28,58 AM [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} 09:09:28,59 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:09:28,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:09:28,59 AM [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]]} 09:09:28,60 AM [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 09:09:28,60 AM [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} 09:09:28,60 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:09:28,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-722869328] 09:09:28,71 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#432648170] 09:09:28,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#1951792884] 09:09:28,75 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:09:28,75 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,275 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:09:28,275 AM [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.23:17355, Removed) 09:09:28,276 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:09:28,276 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:09:28,276 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:09:28,276 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:09:28,276 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1838314950] 09:09:28,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-23311990] 09:09:28,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-908912580] 09:09:28,279 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,279 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:09:28,480 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:09:28,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-433134604] 09:09:28,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1366214669] 09:09:28,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-907435671] 09:09:28,484 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:09:28,484 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,485 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:09:28,486 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:09:28,486 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#2137881302] 09:09:28,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-1445235194] 09:09:28,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-1267977135] 09:09:28,488 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:09:28,489 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,490 AM [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]]} 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:09:28,490 AM [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} 09:09:28,490 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:09:28,490 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:09:28,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:09:28,491 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:09:28,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:09:28,491 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:09:28,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:09:28,491 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:09:28,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:09:28,491 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:09:28,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:09:28,491 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:09:28,492 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-767893382] 09:09:28,492 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#419244038] 09:09:28,492 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#2060385780] 09:09:28,494 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:09:28,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,494 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:09:28,494 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:09:28,494 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:09:28,494 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:09:28,495 AM [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]]} 09:09:28,495 AM [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} 09:09:28,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-986415055] 09:09:28,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-2060906512] 09:09:28,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1191588914] 09:09:28,497 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:09:28,497 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,498 AM [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 09:09:28,498 AM [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]]} 09:09:28,498 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:09:28,498 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:09:28,498 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:09:28,499 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-938862051] 09:09:28,499 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1489560504] 09:09:28,499 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1359980694] 09:09:28,500 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/04/2025 09:09:28.501] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3f9e23e7 [INFO] [pekkoDeadLetter][07/04/2025 09:09:28.501] [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'. 09:09:28,501 AM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:28,502 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:09:28,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:09:28,502 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:09:28,503 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:09:28,503 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:09:28,503 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 09:09:28,503 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:09:28,503 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:09:28,505 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:09:28,505 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:09:28,505 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:09:28,505 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:09:28,505 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:28,505 AM [test-pekko.actor.default-dispatcher-5] [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 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:09:28,509 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 138.5 μs with journalIndex=1 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [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]]} 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:09:28,510 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 6.363 ms 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [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} 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:09:28,510 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 09:09:28,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:09:28,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 2.865 ms 09:09:28,513 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:09:28,513 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 2.420 μs 09:09:28,513 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:09:28,513 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@ec22211} 09:09:28,513 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:09:28,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 09:09:28,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 09:09:28,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.240 ms 09:09:28,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@ec22211} 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [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] 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08deab0@ec22211} 09:09:28,514 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.tmp 09:09:28,514 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.145 ms [WARN] [07/04/2025 09:09:28.514] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/04/2025 09:09:28.515] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:28,515 AM [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'. 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-04T09:09:28.514621538Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d519348] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:09:28,516 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:09:28,516 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-04T09:09:28.514621538Z 09:09:28,516 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 09:09:28,516 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:09:28,516 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.482 ms 09:09:28,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 09:09:28,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 09:09:28,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:09:28,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 157.5 μs 09:09:28,517 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:09:28,517 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:09:28,661 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1 09:09:28,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:09:28,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:09:28,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:09:28,662 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-04T09:09:28.514621538Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:09:28,663 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:09:28,664 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#876,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 09:09:28,665 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 147.9 ms 09:09:28,665 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 17.41 μs 09:09:28,665 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:09:28,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:09:28,665 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:09:28,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:09:28,665 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/04/2025 09:09:28.666] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@248bbe41 [INFO] [pekkoDeadLetter][07/04/2025 09:09:28.666] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:28,666 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:28,666 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:09:28,666 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:09:28,666 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:09:28,667 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 09:09:28,668 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 09:09:28,668 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 09:09:28,669 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:09:28,669 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:09:28,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:28,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1 09:09:28,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:09:28,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:09:28,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:09:28,669 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-04T09:09:28.514621538Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2588290657119271304/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068679A48-1EAC8062.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:09:28,670 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:09:28,670 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-04T09:09:28.514621538Z 09:09:28,670 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 128.0 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 403.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:09:28,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 216.0 μs with journalIndex=4 09:09:28,676 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-1396930543] 09:09:28,676 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#2129934678] 09:09:28,676 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#951339780] 09:09:28,676 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:09:28,676 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#879,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 09:09:28,677 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 7.618 ms 09:09:28,677 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.37 μs 09:09:28,677 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:09:28,677 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:09:28,677 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:09:28,677 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:09:28,677 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:09:28,679 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:09:28,679 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:28,979 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:09:29,109 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:09:29,109 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:09:29,360 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:09:29,560 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:09:29,560 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-851534893] 09:09:29,571 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1120467795] 09:09:29,572 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-652908279] 09:09:29,575 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,584 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:09:29,584 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:09:29,584 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:09:29,584 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:09:29,584 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:09:29,584 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-177967773] 09:09:29,595 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1134623138] 09:09:29,595 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1417153163] 09:09:29,597 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,598 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 09:09:29,598 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:09:29,599 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#535323042] 09:09:29,609 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#2001439969] 09:09:29,609 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-106232809] 09:09:29,611 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,612 AM [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]]} 09:09:29,613 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:09:29,613 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:09:29,613 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:09:29,613 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:09:29,613 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:09:29,613 AM [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} 09:09:29,613 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:09:29,613 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:09:29,613 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:09:29,613 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:09:29,613 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:09:29,613 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#1272488333] 09:09:29,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#77455301] 09:09:29,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1023240163] 09:09:29,626 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,627 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 09:09:29,627 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:09:29,628 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1625614449] 09:09:29,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1064471060] 09:09:29,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-709013467] 09:09:29,640 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,641 AM [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 09:09:29,641 AM [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 09:09:29,641 AM [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} 09:09:29,641 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:09:29,642 AM [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 09:09:29,642 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:09:29,642 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:09:29,642 AM [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. 09:09:29,642 AM [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 09:09:29,643 AM [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 09:09:29,643 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:09:29,644 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:09:29,644 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-657428545] 09:09:29,655 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-43629713] 09:09:29,655 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1261528387] 09:09:29,657 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,657 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:09:29,657 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:09:29,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,658 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:09:29,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:09:29,658 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:09:29,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:09:29,658 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:09:29,658 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1424957837] 09:09:29,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#470333447] 09:09:29,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#641285216] 09:09:29,674 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,675 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:09:29,677 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-697579295] 09:09:29,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#600743783] 09:09:29,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#1359204089] 09:09:29,694 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:09:29,695 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:09:29,695 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:09:29,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#-948743264] 09:09:29,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#1184580076] 09:09:29,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#-977772645] [INFO] [07/04/2025 09:09:29.697] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:09:29,697 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/04/2025 09:09:29.697] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.23:17355) [INFO] [pekkoDeadLetter][07/04/2025 09:09:29.697] [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#1846139735] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:09:29,697 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1846139735] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [07/04/2025 09:09:29.698] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Exiting completed 09:09:29,698 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Exiting completed [INFO] [07/04/2025 09:09:29.698] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Shutting down... 09:09:29,698 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Shutting down... [INFO] [07/04/2025 09:09:29.698] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.23:17355] - Successfully shut down 09:09:29,698 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.23:17355] - Successfully shut down 09:09:29,699 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/04/2025 09:09:29.699] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.23:17355/system/remoting-terminator] Shutting down remote daemon. 09:09:29,699 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/04/2025 09:09:29.699] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.23:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/04/2025 09:09:29.700] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.23:17355/system/remoting-terminator] Remoting shut down. 09:09:29,701 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/04/2025 09:09:29.701] [test-pekko.actor.internal-dispatcher-8] [EventStream] shutting down: StandardOutLogger