[DEBUG] [07/15/2025 18:28:08.467] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:28:08,468 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/15/2025 18:28:08.468] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/15/2025 18:28:08.468] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/15/2025 18:28:08.477] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.216:17355] with UID [-8884251505379928955] 06:28:08,477 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.216:17355] with UID [-8884251505379928955] [INFO] [07/15/2025 18:28:08.478] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Starting up, Pekko version [1.0.3] ... 06:28:08,478 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/15/2025 18:28:08.481] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:28:08,481 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/15/2025 18:28:08.481] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Started up successfully 06:28:08,481 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Started up successfully 06:28:08,482 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:28:08,482 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/15/2025 18:28:08.482] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/15/2025 18:28:08.482] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:28:08,495 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:28:08,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,656 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:28:08,657 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:28:08,657 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:28:08,658 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:28:08,659 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:28:08,659 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:28:08,659 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:28:08,659 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:28:08,661 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:28:08,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#477150016] 06:28:08,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#1155444465] 06:28:08,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1336979111] 06:28:08,675 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:28:08,675 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,678 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:28:08,679 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 06:28:08,679 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,680 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:28:08,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1915143781] 06:28:08,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1762693275] 06:28:08,691 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1758250880] 06:28:08,693 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:28:08,693 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,694 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:28:08,694 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:28:08,694 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:28:08,694 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:28:08,695 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:28:08,695 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:28:08,695 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:28:08,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:28:08,697 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:08,697 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:08,698 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:28:08,698 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,699 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:28:08,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#2102816310] 06:28:08,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-25479278] 06:28:08,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#566758867] 06:28:08,712 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,713 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:28:08,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-174370776] 06:28:08,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1663439733] 06:28:08,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#316203230] 06:28:08,727 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:28:08,727 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,728 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:08,728 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:08,729 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:08,729 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:28:08,729 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:28:08,729 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:28:08,730 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:28:08,730 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,730 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:08,730 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:28:08,732 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:28:08,733 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-2044603002] 06:28:08,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1622492429] 06:28:08,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#1220141842] 06:28:08,745 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:28:08,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,746 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,747 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:28:08,747 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:28:08,747 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:28:08,747 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:28:08,748 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:28:08,748 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:28:08,748 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,749 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:28:08,749 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:28:08,749 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:28:08,749 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:28:08,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1040291822] 06:28:08,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#176171699] 06:28:08,762 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1753459230] 06:28:08,764 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:28:08,764 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,765 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:28:08,766 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:28:08,766 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,766 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:28:08,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-128101332] 06:28:08,777 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1553204766] 06:28:08,777 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#814794605] 06:28:08,779 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#1399914220] 06:28:08,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1328694350] 06:28:08,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-510522455] 06:28:08,795 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:28:08,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:08,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:28:08,795 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,796 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:08,796 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:28:08,797 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:28:08,797 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:28:08,797 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:28:08,797 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-995557308] 06:28:08,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#2113584416] 06:28:08,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1703931570] 06:28:08,812 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/15/2025 18:28:08.814] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@475ccb91 [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.814] [test-pekko.actor.default-dispatcher-7] [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'. 06:28:08,815 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:28:08,817 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,817 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,817 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,818 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,818 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,819 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,820 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,820 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,822 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:28:08,822 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,822 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,822 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,822 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,822 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,827 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,827 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:28:08,827 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,827 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,827 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,829 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#881,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 06:28:08,829 PM [test-pekko.actor.default-dispatcher-11] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,829 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 8.870 ms 06:28:08,829 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 22.36 μs 06:28:08,829 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,830 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,830 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,830 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,830 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,830 PM [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. [2] 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'. 06:28:08,831 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,831 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,831 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,831 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,832 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,832 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,832 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,832 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [ERROR] [07/15/2025 18:28:08.828] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [WARN] [07/15/2025 18:28:08.833] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@593a6fd8 [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.830] [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. [2] 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'. 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,834 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 [ERROR] [07/15/2025 18:28:08.834] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,835 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#883,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 06:28:08,835 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.416 ms 06:28:08,835 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,835 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.72 μs 06:28:08,835 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,836 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,836 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,837 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,837 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,837 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,838 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,838 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,838 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,838 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,838 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [07/15/2025 18:28:08.838] [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@110cdd16 [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.838] [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. [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'. 06:28:08,839 PM [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. [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'. 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [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 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,840 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,841 PM [test-pekko.actor.default-dispatcher-12] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,841 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#885,testCaptureSnapshotOnLastEntryInAppendEntries-writer-159]/waiting [ERROR] [07/15/2025 18:28:08.841] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,841 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.735 ms 06:28:08,841 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.50 μs 06:28:08,841 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,841 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,841 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,841 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,841 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,842 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,842 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,842 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,842 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,843 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,843 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,843 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,843 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [07/15/2025 18:28:08.843] [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@45f2ad85 [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.843] [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. [4] 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'. 06:28:08,843 PM [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. [4] 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'. 06:28:08,844 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,844 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [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 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,845 PM [test-pekko.actor.default-dispatcher-12] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/15/2025 18:28:08.845] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,845 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#886,testCaptureSnapshotOnLastEntryInAppendEntries-writer-160]/waiting 06:28:08,845 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.465 ms 06:28:08,845 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 9.700 μs 06:28:08,845 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,846 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,846 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,846 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,846 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.846] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@69bc79ed [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.846] [test-pekko.actor.default-dispatcher-12] [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. [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'. 06:28:08,846 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 06:28:08,847 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,847 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,847 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,847 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,847 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,847 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,847 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,847 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,850 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,850 PM [test-pekko.actor.default-dispatcher-15] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,850 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#887,testCaptureSnapshotOnLastEntryInAppendEntries-writer-161]/waiting [ERROR] [07/15/2025 18:28:08.850] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,851 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.442 ms 06:28:08,851 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.14 μs 06:28:08,851 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,851 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,851 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,851 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,851 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.851] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@350fe83a [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.851] [test-pekko.actor.default-dispatcher-15] [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. [6] 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'. 06:28:08,852 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] 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'. 06:28:08,852 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,852 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,852 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,852 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,853 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,853 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,853 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,853 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,854 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,854 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,854 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,854 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,854 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,854 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,855 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:28:08,855 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,855 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,855 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,855 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,855 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,855 PM [test-pekko.actor.default-dispatcher-11] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/15/2025 18:28:08.855] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,855 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#888,testCaptureSnapshotOnLastEntryInAppendEntries-writer-162]/waiting 06:28:08,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.256 ms 06:28:08,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.690 μs 06:28:08,855 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,855 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,855 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,855 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,855 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.856] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7ba0a8b3 06:28:08,856 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.856] [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. [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'. 06:28:08,856 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,856 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,856 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,856 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,856 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,861 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,861 PM [test-pekko.actor.default-dispatcher-7] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/15/2025 18:28:08.861] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,862 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#889,testCaptureSnapshotOnLastEntryInAppendEntries-writer-163]/waiting 06:28:08,862 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.366 ms 06:28:08,862 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 8.160 μs 06:28:08,862 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,862 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,862 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,862 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,862 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,863 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,863 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,863 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [WARN] [07/15/2025 18:28:08.863] [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@7b44e4c [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.863] [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. [8] 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'. 06:28:08,864 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [8] 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'. 06:28:08,864 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,864 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,864 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,864 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,864 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,865 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,866 PM [test-pekko.actor.default-dispatcher-7] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/15/2025 18:28:08.866] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,866 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#890,testCaptureSnapshotOnLastEntryInAppendEntries-writer-164]/waiting 06:28:08,866 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.757 ms 06:28:08,866 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.350 μs 06:28:08,866 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,866 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,866 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,866 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,866 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,867 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,867 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,867 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,867 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,868 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,868 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,868 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,868 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [07/15/2025 18:28:08.868] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@583fecaf [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.868] [test-pekko.actor.default-dispatcher-7] [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. [9] 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'. 06:28:08,868 PM [test-pekko.actor.default-dispatcher-7] [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. [9] 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'. 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [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 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,869 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,869 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#891,testCaptureSnapshotOnLastEntryInAppendEntries-writer-165]/waiting 06:28:08,869 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.803 ms 06:28:08,869 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 8.361 μs 06:28:08,869 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/15/2025 18:28:08.869] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.870] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4a808c51 [INFO] [pekkoDeadLetter][07/15/2025 18:28:08.870] [test-pekko.actor.default-dispatcher-12] [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. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. 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'. 06:28:08,870 PM [test-pekko.actor.default-dispatcher-12] [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. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. 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'. 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,870 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,871 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,871 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,871 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,871 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,871 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [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 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,873 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 [ERROR] [07/15/2025 18:28:08.874] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,874 PM [test-pekko.actor.default-dispatcher-7] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,874 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#892,testCaptureSnapshotOnLastEntryInAppendEntries-writer-166]/waiting 06:28:08,874 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.385 ms 06:28:08,874 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.34 μs 06:28:08,874 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,875 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,875 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,875 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,875 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.875] [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@89d254a 06:28:08,875 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,876 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,876 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,876 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,876 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,876 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,876 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,876 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [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 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,877 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,878 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,878 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#893,testCaptureSnapshotOnLastEntryInAppendEntries-writer-167]/waiting [ERROR] [07/15/2025 18:28:08.878] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,878 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.134 ms 06:28:08,878 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.75 μs 06:28:08,878 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,879 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,879 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,879 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,879 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.879] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6ace5d28 06:28:08,880 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,880 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,880 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,880 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,881 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,881 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,881 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,881 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,882 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,883 PM [test-pekko.actor.default-dispatcher-11] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#894,testCaptureSnapshotOnLastEntryInAppendEntries-writer-168]/waiting [ERROR] [07/15/2025 18:28:08.883] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,883 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.196 ms 06:28:08,883 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.45 μs 06:28:08,883 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,883 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.884] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1b01d4b7 06:28:08,884 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,884 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,884 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,884 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,885 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,885 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,885 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,885 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,886 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,886 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,886 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#895,testCaptureSnapshotOnLastEntryInAppendEntries-writer-169]/waiting [ERROR] [07/15/2025 18:28:08.886] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,886 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.633 ms 06:28:08,886 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 8.130 μs 06:28:08,887 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.887] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@46a03eeb 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,887 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,888 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,888 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,888 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,888 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,888 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,889 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,889 PM [test-pekko.actor.default-dispatcher-11] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [07/15/2025 18:28:08.889] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#896,testCaptureSnapshotOnLastEntryInAppendEntries-writer-170]/waiting 06:28:08,889 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.392 ms 06:28:08,889 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 6.370 μs 06:28:08,889 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.890] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@69b68dfc 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,891 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,891 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,891 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,892 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,892 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,892 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#897,testCaptureSnapshotOnLastEntryInAppendEntries-writer-171]/waiting [ERROR] [07/15/2025 18:28:08.892] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,892 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.367 ms 06:28:08,892 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 5.200 μs 06:28:08,892 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,892 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,892 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,892 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,892 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.893] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1c26b0d9 06:28:08,893 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,893 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,893 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,894 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,894 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,894 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,895 PM [test-pekko.actor.default-dispatcher-11] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) [ERROR] [07/15/2025 18:28:08.895] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#898,testCaptureSnapshotOnLastEntryInAppendEntries-writer-172]/waiting 06:28:08,895 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.361 ms 06:28:08,895 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 4.980 μs 06:28:08,895 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.895] [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@5b3e0ab1 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,896 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,896 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [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 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,897 PM [test-pekko.actor.default-dispatcher-12] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,897 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#899,testCaptureSnapshotOnLastEntryInAppendEntries-writer-173]/waiting [ERROR] [07/15/2025 18:28:08.897] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,897 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.494 ms 06:28:08,897 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 5.710 μs 06:28:08,897 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.898] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@49b2ceae 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,898 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,899 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,899 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,899 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,899 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,899 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,900 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,900 PM [test-pekko.actor.default-dispatcher-12] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) [ERROR] [07/15/2025 18:28:08.900] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,900 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#900,testCaptureSnapshotOnLastEntryInAppendEntries-writer-174]/waiting 06:28:08,900 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.301 ms 06:28:08,900 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.920 μs 06:28:08,900 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.901] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2346f9f3 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,901 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,902 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,902 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,902 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,902 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,902 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,903 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,903 PM [test-pekko.actor.default-dispatcher-15] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#901,testCaptureSnapshotOnLastEntryInAppendEntries-writer-175]/waiting [ERROR] [07/15/2025 18:28:08.903] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.546 ms 06:28:08,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.391 μs 06:28:08,904 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.904] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@615b4c6d 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,904 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,905 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,905 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,905 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,905 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,905 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,906 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,906 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,906 PM [test-pekko.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,906 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#902,testCaptureSnapshotOnLastEntryInAppendEntries-writer-176]/waiting [ERROR] [07/15/2025 18:28:08.906] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,906 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.263 ms 06:28:08,906 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 6.660 μs 06:28:08,906 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,906 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,906 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,906 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,906 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.906] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@24fbfd8 06:28:08,907 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,907 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,907 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,907 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,907 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,907 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,907 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,907 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,908 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,909 PM [test-pekko.actor.default-dispatcher-15] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) [ERROR] [07/15/2025 18:28:08.909] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,909 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#903,testCaptureSnapshotOnLastEntryInAppendEntries-writer-177]/waiting 06:28:08,909 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.453 ms 06:28:08,909 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.340 μs 06:28:08,909 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,909 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,909 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,909 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,909 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.909] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@34150e76 06:28:08,909 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,910 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,910 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,910 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,910 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,910 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,910 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,910 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [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 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,911 PM [test-pekko.actor.default-dispatcher-12] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) [ERROR] [07/15/2025 18:28:08.911] [test-pekko.actor.internal-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.1-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.1-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 06:28:08,911 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#904,testCaptureSnapshotOnLastEntryInAppendEntries-writer-178]/waiting 06:28:08,911 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.332 ms 06:28:08,911 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.600 μs 06:28:08,911 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:08.912] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@50a89b46 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:28:08,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:08,913 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:08,913 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:28:08,913 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:28:08,913 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [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 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:28:08,914 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-36827848.tmp 06:28:08,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-36827848.v1 06:28:08,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-36827848.v1 06:28:08,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,919 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-15T18:28:08.914520136Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-36827848.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.563 ms, resetting timer for the next recovery snapshot 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 148.1 μs with journalIndex=1 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 06:28:08,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:28:08,921 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 7.896 ms 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:28:08,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 06:28:08,925 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 06:28:08,925 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 06:28:08,925 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 4.651 ms 06:28:08,925 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:28:08,925 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.410 μs 06:28:08,925 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08dfb30@227a3e28} 06:28:08,925 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 06:28:08,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:28:08,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:28:08,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 189.4 μs 06:28:08,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c08dfb30@227a3e28} 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.889 ms 06:28:08,926 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-3733B45D.tmp 06:28:08,926 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [07/15/2025 18:28:08.926] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-3733B45D.v1 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-3733B45D.v1 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-36827848.v1 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-15T18:28:08.914520136Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-36827848.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-15T18:28:08.926135389Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-3733B45D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:28:08,929 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d584346] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:28:08,929 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:28:08,929 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-15T18:28:08.926135389Z 06:28:08,929 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 06:28:08,930 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.839 ms 06:28:08,930 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 06:28:08,930 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 06:28:08,930 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:28:08,930 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 158.9 μs 06:28:08,930 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:28:08,930 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:28:08,930 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:28:09,22 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-3733B45D.v1 06:28:09,22 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:28:09,22 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:28:09,22 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:28:09,22 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-15T18:28:08.926135389Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9006092153387188065/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068769DB8-3733B45D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:28:09,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-677420568] 06:28:09,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1350557199] 06:28:09,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-18790576] 06:28:09,36 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:28:09,36 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#905,testCaptureSnapshotOnLastEntryInAppendEntries-writer-179]/waiting 06:28:09,36 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 106.4 ms 06:28:09,36 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 18.92 μs 06:28:09,36 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-179] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:28:09,37 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:09,37 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:28:09,37 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:09,37 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:09,39 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,41 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1490991323] 06:28:09,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-230640192] 06:28:09,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1218843067] 06:28:09,54 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:28:09,55 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,56 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 06:28:09,56 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:28:09,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#356318415] 06:28:09,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1441274035] 06:28:09,67 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-2047569894] 06:28:09,70 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:28:09,70 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,70 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,71 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,71 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:09,72 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:28:09,72 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:28:09,72 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:28:09,72 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:28:09,72 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,72 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:09,72 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:28:09,72 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:28:09,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-972371747] 06:28:09,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#2043805254] 06:28:09,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-1569518899] 06:28:09,85 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:28:09,86 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,86 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,87 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,87 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:28:09,88 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,88 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:09,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:28:09,89 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,89 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:28:09,90 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,90 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:28:09,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-219867483] 06:28:09,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-779900231] 06:28:09,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#1133682331] 06:28:09,103 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1706741452] 06:28:09,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1994621444] 06:28:09,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#1516263501] 06:28:09,116 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:28:09,116 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,117 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,118 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,118 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:28:09,118 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,119 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:09,119 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:28:09,120 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,120 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:28:09,120 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,120 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:28:09,122 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,122 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:28:09,122 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,123 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:28:09,123 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1685399483] 06:28:09,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1494230423] 06:28:09,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-1350619368] 06:28:09,136 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:28:09,136 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:28:09,138 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,139 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:28:09,139 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:28:09,139 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:28:09,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#798419378] 06:28:09,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1908950405] 06:28:09,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-2065263641] 06:28:09,153 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:28:09,153 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,154 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:28:09,156 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 06:28:09,156 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 06:28:09,158 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:28:09,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1940008216] 06:28:09,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#7053470] 06:28:09,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1298840662] 06:28:09,173 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:28:09,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,174 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:28:09,175 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,176 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:09,176 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:28:09,176 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:28:09,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#1484614731] 06:28:09,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1282270147] 06:28:09,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-818281568] 06:28:09,189 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:28:09,189 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,190 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,190 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,190 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:28:09,191 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,191 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:09,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-569234604] 06:28:09,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-1760318109] 06:28:09,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1643480192] 06:28:09,194 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/15/2025 18:28:09.194] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@217ae041 06:28:09,195 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:28:09,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:28:09,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:28:09,196 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 06:28:09,196 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:09,196 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 06:28:09,196 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 06:28:09,196 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:28:09,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:28:09,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:28:09,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:28:09,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:28:09,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:28:09,198 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:28:09,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0C08CF4A.tmp 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0C08CF4A.v1 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0C08CF4A.v1 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-15T18:28:09.201903946Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0C08CF4A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.572 ms, resetting timer for the next recovery snapshot 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:28:09,205 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 145.8 μs with journalIndex=1 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,206 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 9.369 ms 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:28:09,206 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 06:28:09,210 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 06:28:09,210 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 06:28:09,210 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.580 ms 06:28:09,211 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:28:09,211 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 1.730 μs 06:28:09,211 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08dfb30@79b014a} 06:28:09,211 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:28:09,211 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08dfb30@79b014a} 06:28:09,211 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 06:28:09,212 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 06:28:09,212 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:28:09,212 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.046 ms 06:28:09,212 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08dfb30@79b014a} 06:28:09,212 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.848 ms 06:28:09,212 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0CA66F26.tmp [WARN] [07/15/2025 18:28:09.212] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 06:28:09,214 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0CA66F26.v1 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0CA66F26.v1 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0C08CF4A.v1 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-15T18:28:09.201903946Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0C08CF4A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-15T18:28:09.212234022Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0CA66F26.v1, size=539, entryCompress=NONE, stateCompress=NONE} 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d579006] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:28:09,215 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:28:09,215 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-15T18:28:09.212234022Z 06:28:09,215 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 06:28:09,215 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:28:09,215 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.789 ms 06:28:09,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 06:28:09,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 06:28:09,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:28:09,216 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:28:09,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 163.3 μs 06:28:09,216 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:28:09,357 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0CA66F26.v1 06:28:09,357 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:28:09,357 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:28:09,357 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:28:09,357 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-15T18:28:09.212234022Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4947388688740850876/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068769DB9-0CA66F26.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 06:28:09,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1205243797] 06:28:09,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-851199229] 06:28:09,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#630310547] 06:28:09,360 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:28:09,360 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#908,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180]/waiting 06:28:09,361 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 145.0 ms 06:28:09,361 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 13.11 μs 06:28:09,361 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-180] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 06:28:09,361 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:28:09,361 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:28:09,361 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:28:09,361 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:28:09,364 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:28:09,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,365 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,365 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 06:28:09,365 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 06:28:09,366 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,366 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:28:09,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#631923546] 06:28:09,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#2100340661] 06:28:09,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-1998375464] 06:28:09,368 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:28:09,368 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,369 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:28:09,369 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:28:09,369 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:28:09,369 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:28:09,370 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:28:09,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1666151761] 06:28:09,370 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#276301499] 06:28:09,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-981290845] 06:28:09,372 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:28:09,372 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,372 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:28:09,373 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:28:09,373 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,373 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:28:09,373 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:28:09,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:28:09,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:28:09,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:28:09,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:28:09,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:28:09,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:28:09,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:28:09,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:28:09,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#2122045407] 06:28:09,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1594177626] 06:28:09,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-2112565046] 06:28:09,375 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:28:09,375 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,376 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:28:09,376 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:28:09,376 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1261610876] 06:28:09,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-1120212193] 06:28:09,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#1261741870] 06:28:09,378 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:28:09,378 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,378 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:28:09,378 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:28:09,378 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:28:09,378 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:28:09,379 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,379 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:28:09,379 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:28:09,379 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:28:09,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:28:09,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-493451560] 06:28:09,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#7050687] 06:28:09,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#785502121] 06:28:09,381 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:28:09,381 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,381 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:28:09,382 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,382 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:28:09,382 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,382 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:28:09,382 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:28:09,382 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,383 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:28:09,383 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,383 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:28:09,383 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:28:09,383 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:28:09,383 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:28:09,384 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,384 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:28:09,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#1354547191] 06:28:09,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-2068987879] 06:28:09,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-454097957] 06:28:09,385 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:28:09,385 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,586 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:28:09,586 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.216:17355, Removed) 06:28:09,586 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:28:09,586 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:28:09,586 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:28:09,586 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:28:09,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1454853355] 06:28:09,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#707197682] 06:28:09,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#1139015256] 06:28:09,599 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,599 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:28:09,801 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:28:09,801 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1063440693] 06:28:09,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1499199711] 06:28:09,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1529719072] 06:28:09,815 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:28:09,815 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,817 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:28:09,818 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:28:09,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1827674731] 06:28:09,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-1921029337] 06:28:09,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1358995196] 06:28:09,832 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:28:09,832 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,833 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:28:09,833 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:28:09,834 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:28:09,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:28:09,834 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:28:09,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:28:09,834 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:28:09,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:28:09,834 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:28:09,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:28:09,834 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:28:09,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:28:09,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-1718000947] 06:28:09,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1084591593] 06:28:09,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#209359667] 06:28:09,847 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:28:09,847 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,848 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:28:09,848 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:28:09,848 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:28:09,848 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:28:09,849 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 06:28:09,850 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:09,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#407439818] 06:28:09,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1629479051] 06:28:09,861 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#508868170] 06:28:09,862 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:28:09,862 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:09,863 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:28:09,863 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:28:09,863 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:28:09,864 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:28:09,864 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:28:09,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1955179975] 06:28:09,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1582304001] 06:28:09,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#799593144] 06:28:09,877 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/15/2025 18:28:09.878] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@50be0ace 06:28:09,878 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:09,878 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:28:09,878 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:28:09,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:28:09,879 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:28:09,879 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 06:28:09,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:28:09,879 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:28:09,881 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:28:09,881 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:28:09,881 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:28:09,881 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:28:09,881 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:09,881 PM [test-pekko.actor.default-dispatcher-6] [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 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:28:09,885 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-34C7D8DE.tmp 06:28:09,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-34C7D8DE.v1 06:28:09,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-34C7D8DE.v1 06:28:09,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:28:09,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:28:09,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:28:09,889 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-15T18:28:09.885512414Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-34C7D8DE.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 4.546 ms, resetting timer for the next recovery snapshot 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 206.0 μs with journalIndex=1 06:28:09,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [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]]} 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:28:09,891 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 11.77 ms 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [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} 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:28:09,891 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 06:28:09,895 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 06:28:09,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 06:28:09,895 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.077 ms 06:28:09,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:28:09,895 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 2.270 μs 06:28:09,895 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08dfb30@74ea923f} 06:28:09,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:28:09,895 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08dfb30@74ea923f} 06:28:09,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 06:28:09,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 06:28:09,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 06:28:09,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.006 ms 06:28:09,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [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] 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 06:28:09,896 PM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08dfb30@74ea923f} 06:28:09,896 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.tmp 06:28:09,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.199 ms [WARN] [07/15/2025 18:28:09.897] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-34C7D8DE.v1 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:28:09,899 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-15T18:28:09.885512414Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-34C7D8DE.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-15T18:28:09.896826723Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d704283] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:28:09,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:28:09,900 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-15T18:28:09.896826723Z 06:28:09,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 06:28:09,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.663 ms 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 168.1 μs 06:28:09,900 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:28:09,900 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:28:10,42 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1 06:28:10,42 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:28:10,42 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:28:10,42 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:28:10,42 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-15T18:28:09.896826723Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:28:10,44 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:28:10,55 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#911,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181]/waiting 06:28:10,55 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 155.0 ms 06:28:10,55 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 12.51 μs 06:28:10,55 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-181] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:28:10,55 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:28:10,55 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:28:10,56 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:10,56 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/15/2025 18:28:10.057] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4ef6490a 06:28:10,57 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:28:10,58 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:28:10,58 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:28:10,58 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 06:28:10,59 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 06:28:10,59 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 06:28:10,59 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-182] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:28:10,59 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-182] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-15T18:28:09.896826723Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3114234502476921716/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068769DB9-35747D63.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:28:10,62 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-15T18:28:09.896826723Z 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 126.2 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 228.4 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:28:10,63 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 98.53 μs with journalIndex=4 06:28:10,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-256478219] 06:28:10,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#1858074175] 06:28:10,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-129686885] 06:28:10,64 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:28:10,65 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#914,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-182]/waiting 06:28:10,65 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-182] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 5.711 ms 06:28:10,65 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-182] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 21.00 μs 06:28:10,65 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-182] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:28:10,65 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:28:10,65 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:28:10,65 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:10,65 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:28:10,72 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:28:10,72 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:10,373 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:28:10,503 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:28:10,503 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:28:10,753 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:28:10,954 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:28:10,954 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#876694685] 06:28:10,965 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-443442029] 06:28:10,965 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1576249509] 06:28:10,967 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:10,968 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:28:10,968 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:28:10,968 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:28:10,968 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:28:10,969 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:28:10,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-1430178221] 06:28:10,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#546097063] 06:28:10,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1435769448] 06:28:10,981 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:10,983 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:28:10,983 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:28:10,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#488295868] 06:28:10,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-981716831] 06:28:10,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-1708929478] 06:28:10,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:10,997 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 06:28:10,997 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:28:10,997 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:28:10,997 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:28:10,997 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:28:10,998 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:28:10,998 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:10,998 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:28:10,998 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:28:10,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:28:10,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:28:10,998 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:28:10,999 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-1549063058] 06:28:11,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1486805769] 06:28:11,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1199701547] 06:28:11,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:11,13 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:28:11,13 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:28:11,14 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-90331845] 06:28:11,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-1468317124] 06:28:11,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#474276802] 06:28:11,26 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:11,26 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:28:11,27 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 06:28:11,27 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:28:11,28 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:28:11,28 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 06:28:11,30 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:28:11,30 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:28:11,30 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 06:28:11,30 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 06:28:11,31 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:28:11,31 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:28:11,32 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:28:11,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-665698491] 06:28:11,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#29522160] 06:28:11,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#509733738] 06:28:11,46 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:11,46 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:28:11,46 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:28:11,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:11,47 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:28:11,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:28:11,47 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:28:11,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:28:11,47 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:28:11,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-942710048] 06:28:11,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-446093813] 06:28:11,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#1939381199] 06:28:11,60 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:11,61 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:28:11,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#749066761] 06:28:11,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#192551608] 06:28:11,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1026471173] 06:28:11,74 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:28:11,76 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:28:11,76 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:28:11,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1739924214] 06:28:11,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1517668041] 06:28:11,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1531367609] [INFO] [07/15/2025 18:28:11.087] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:28:11,87 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/15/2025 18:28:11.088] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.216:17355) [INFO] [07/15/2025 18:28:11.088] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Exiting completed 06:28:11,88 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Exiting completed 06:28:11,89 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Shutting down... [INFO] [07/15/2025 18:28:11.088] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Shutting down... [INFO] [07/15/2025 18:28:11.089] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.216:17355] - Successfully shut down 06:28:11,89 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.216:17355] - Successfully shut down [INFO] [07/15/2025 18:28:11.090] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.216:17355/system/remoting-terminator] Shutting down remote daemon. 06:28:11,90 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/15/2025 18:28:11.090] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.216:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:28:11,90 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/15/2025 18:28:11.092] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.216:17355/system/remoting-terminator] Remoting shut down. 06:28:11,93 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/15/2025 18:28:11.093] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger