[DEBUG] [07/07/2025 20:01:01.795] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:01:01,795 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/07/2025 20:01:01.795] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/07/2025 20:01:01.795] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/07/2025 20:01:01.804] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.196:17355] with UID [6604561974968054999] [INFO] [07/07/2025 20:01:01.805] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - Starting up, Pekko version [1.0.3] ... 08:01:01,807 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.196:17355] with UID [6604561974968054999] 08:01:01,807 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/07/2025 20:01:01.808] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/07/2025 20:01:01.808] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - Started up successfully 08:01:01,808 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:01:01,809 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - Started up successfully [INFO] [07/07/2025 20:01:01.809] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/07/2025 20:01:01.809] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:01:01,809 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:01:01,809 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:01:01,822 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 08:01:01,822 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:01,908 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:01:01,909 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:01:01,909 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:01:01,910 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:01:01,911 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:01:01,911 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 08:01:01,911 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:01:01,911 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:01:01,915 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 08:01:01,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1846080127] 08:01:01,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#159980705] 08:01:01,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#384142490] 08:01:01,930 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 08:01:01,930 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:01,933 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]]} 08:01:01,934 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 08:01:01,934 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} 08:01:01,934 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:01:01,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-2035154444] 08:01:01,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1832954415] 08:01:01,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#2112613012] 08:01:01,949 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 08:01:01,949 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:01,950 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:01:01,950 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:01:01,950 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:01:01,951 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:01:01,951 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:01:01,951 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:01:01,951 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:01:01,952 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:01:01,954 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 08:01:01,954 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]]} 08:01:01,955 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 08:01:01,955 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} 08:01:01,955 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 08:01:01,956 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1827647047] 08:01:01,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#933650190] 08:01:01,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1129334200] 08:01:01,970 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:01,971 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:01:01,972 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#422496453] 08:01:01,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-523762838] 08:01:01,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1394866613] 08:01:01,987 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:01:01,987 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:01,988 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 08:01:01,988 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]]} 08:01:01,989 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:01,989 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:01:01,989 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:01:01,989 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:01:01,990 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:01:01,990 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} 08:01:01,990 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:01,990 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:01:01,992 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:01:01,993 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#565928591] 08:01:02,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#329095474] 08:01:02,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-978067361] 08:01:02,8 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 08:01:02,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,10 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]]} 08:01:02,10 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:02,10 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:01:02,10 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:01:02,10 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:01:02,10 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:01:02,11 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} 08:01:02,11 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:01:02,11 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:01:02,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:01:02,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:01:02,11 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:01:02,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:01:02,13 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]]} 08:01:02,13 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:01:02,13 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:01:02,13 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:01:02,13 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 08:01:02,13 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:01:02,14 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:01:02,14 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} 08:01:02,14 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:01:02,14 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:01:02,14 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:01:02,14 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:01:02,15 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-576433361] 08:01:02,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#1909591474] 08:01:02,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-340500013] 08:01:02,29 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 08:01:02,29 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,30 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 08:01:02,31 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 08:01:02,32 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} 08:01:02,32 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 08:01:02,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1388477072] 08:01:02,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1528687997] 08:01:02,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-286638038] 08:01:02,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,51 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-658318195] 08:01:02,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#219741009] 08:01:02,62 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-1586622308] 08:01:02,66 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 08:01:02,66 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,66 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:01:02,67 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 08:01:02,68 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]]} 08:01:02,68 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:02,68 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:01:02,68 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:01:02,68 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:01:02,68 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:01:02,68 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} 08:01:02,69 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,69 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 08:01:02,69 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 08:01:02,69 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 08:01:02,69 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 08:01:02,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1051463105] 08:01:02,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1088023901] 08:01:02,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1278204626] 08:01:02,84 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/07/2025 20:01:02.087] [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@2fa1816b [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.087] [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'. 08:01:02,87 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. [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'. 08:01:02,90 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,90 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,90 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,91 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,91 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,91 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,92 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,92 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,95 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 08:01:02,95 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,95 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,95 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,95 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,95 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 08:01:02,98 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,98 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 08:01:02,98 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,98 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,98 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,99 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,99 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#877,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 08:01:02,99 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.569 ms 08:01:02,99 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.45 μs 08:01:02,99 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.099] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,99 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,99 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,99 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,99 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.100] [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@370f7a6f [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.100] [test-pekko.actor.default-dispatcher-6] [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'. 08:01:02,100 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'. 08:01:02,100 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,100 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,100 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,101 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,101 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,101 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,101 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,101 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,104 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,105 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 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,105 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,105 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,105 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#879,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 08:01:02,105 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.154 ms 08:01:02,105 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 14.73 μs 08:01:02,105 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.105] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,106 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,106 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,106 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,106 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.106] [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@1211ba67 [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.106] [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. [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'. 08:01:02,106 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'. 08:01:02,107 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,107 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,107 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,107 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,108 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,108 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,108 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,108 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,110 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 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,110 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,111 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#880,testCaptureSnapshotOnLastEntryInAppendEntries-writer-159]/waiting [ERROR] [07/07/2025 20:01:02.110] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,111 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.004 ms 08:01:02,111 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.50 μs 08:01:02,111 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,111 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,111 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,111 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,111 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,111 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.112] [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@2ecee5d2 [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.112] [test-pekko.actor.default-dispatcher-14] [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'. 08:01:02,112 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'. 08:01:02,112 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,112 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,112 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,112 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,113 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,113 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,113 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,113 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,114 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,115 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 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,115 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,115 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,115 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#882,testCaptureSnapshotOnLastEntryInAppendEntries-writer-160]/waiting 08:01:02,115 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.275 ms 08:01:02,115 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.07 μs 08:01:02,115 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,115 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,115 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,115 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,115 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,116 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. [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'. 08:01:02,116 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,116 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [ERROR] [07/07/2025 20:01:02.115] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,116 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [WARN] [07/07/2025 20:01:02.116] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@56ce593e [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.116] [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. [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'. 08:01:02,116 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,116 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,116 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,116 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,116 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [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 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,118 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,118 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) [ERROR] [07/07/2025 20:01:02.118] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,119 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#883,testCaptureSnapshotOnLastEntryInAppendEntries-writer-161]/waiting 08:01:02,119 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.089 ms 08:01:02,119 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.94 μs 08:01:02,119 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,120 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,120 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,120 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,120 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.120] [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@52ad0925 [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.120] [test-pekko.actor.default-dispatcher-14] [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'. 08:01:02,120 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'. 08:01:02,121 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,121 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,121 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,121 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,122 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,122 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,122 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,122 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,123 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 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,123 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,124 PM [test-pekko.actor.default-dispatcher-14] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) [ERROR] [07/07/2025 20:01:02.123] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#884,testCaptureSnapshotOnLastEntryInAppendEntries-writer-162]/waiting 08:01:02,133 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 11.57 ms 08:01:02,133 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 28.41 μs 08:01:02,133 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,134 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,134 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,134 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,134 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.134] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1a4f222f [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.134] [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'. 08:01:02,134 PM [test-pekko.actor.default-dispatcher-14] [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'. 08:01:02,134 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,135 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,135 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,135 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,135 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,135 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,136 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,136 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [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 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,137 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,138 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) [ERROR] [07/07/2025 20:01:02.138] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.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) 08:01:02,138 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#885,testCaptureSnapshotOnLastEntryInAppendEntries-writer-163]/waiting 08:01:02,138 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.596 ms 08:01:02,138 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.04 μs 08:01:02,138 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,138 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,138 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,138 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,138 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.139] [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@50883a06 [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.139] [test-pekko.actor.default-dispatcher-14] [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'. 08:01:02,139 PM [test-pekko.actor.default-dispatcher-14] [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'. 08:01:02,139 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,139 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,140 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,140 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,140 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,140 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,140 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,141 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,141 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,141 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,141 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,142 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 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,142 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,142 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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/07/2025 20:01:02.142] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,142 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#887,testCaptureSnapshotOnLastEntryInAppendEntries-writer-164]/waiting 08:01:02,143 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.467 ms 08:01:02,143 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 15.45 μs 08:01:02,143 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,145 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,145 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,145 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,145 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.146] [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@4af021c4 [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.146] [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'. 08:01:02,146 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'. 08:01:02,146 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,146 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,146 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,146 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,146 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,146 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,146 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,146 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,148 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,148 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 [ERROR] [07/07/2025 20:01:02.148] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,148 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#888,testCaptureSnapshotOnLastEntryInAppendEntries-writer-165]/waiting 08:01:02,149 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.894 ms 08:01:02,149 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.23 μs 08:01:02,149 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,149 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,149 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,149 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,149 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.150] [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@976965c [INFO] [pekkoDeadLetter][07/07/2025 20:01:02.150] [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. [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'. 08:01:02,150 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. [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'. 08:01:02,150 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,150 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,151 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,151 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,151 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,151 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,151 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,151 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,153 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,153 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#889,testCaptureSnapshotOnLastEntryInAppendEntries-writer-166]/waiting 08:01:02,153 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.060 ms 08:01:02,153 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.32 μs 08:01:02,153 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.153] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,153 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.154] [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@7d49610f 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,154 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,155 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,155 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,155 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,155 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,160 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 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,160 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,160 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,161 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#890,testCaptureSnapshotOnLastEntryInAppendEntries-writer-167]/waiting 08:01:02,161 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.121 ms 08:01:02,161 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.82 μs 08:01:02,161 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.160] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,161 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,161 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.162] [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@677a2911 08:01:02,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,163 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,163 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,163 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,163 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,163 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,164 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,165 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 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,165 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,165 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,165 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#891,testCaptureSnapshotOnLastEntryInAppendEntries-writer-168]/waiting 08:01:02,165 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.173 ms 08:01:02,165 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 12.20 μs 08:01:02,165 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [ERROR] [07/07/2025 20:01:02.165] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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/07/2025 20:01:02.166] [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@6479e7bb 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,166 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,167 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,167 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,168 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 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,168 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,168 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,168 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#892,testCaptureSnapshotOnLastEntryInAppendEntries-writer-169]/waiting 08:01:02,168 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.841 ms 08:01:02,168 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.13 μs 08:01:02,168 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.168] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.169] [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@217fe359 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,169 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,170 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,170 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,170 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,170 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,170 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,171 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 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,171 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,171 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,171 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#893,testCaptureSnapshotOnLastEntryInAppendEntries-writer-170]/waiting 08:01:02,172 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.729 ms 08:01:02,172 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.22 μs 08:01:02,172 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [ERROR] [07/07/2025 20:01:02.171] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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/07/2025 20:01:02.172] [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@5037298a 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,172 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,173 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,173 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,173 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,173 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,173 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,174 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,174 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,174 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,174 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,174 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,174 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,175 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 08:01:02,175 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,175 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,175 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,175 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,175 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,175 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,175 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#894,testCaptureSnapshotOnLastEntryInAppendEntries-writer-171]/waiting 08:01:02,175 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.272 ms 08:01:02,175 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.05 μs 08:01:02,175 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.175] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,175 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,175 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,175 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,175 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.176] [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@3ca815c9 08:01:02,176 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,176 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,177 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,177 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,177 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,177 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,177 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,178 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 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,178 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,178 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) [ERROR] [07/07/2025 20:01:02.178] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,179 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#895,testCaptureSnapshotOnLastEntryInAppendEntries-writer-172]/waiting 08:01:02,179 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.775 ms 08:01:02,179 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.91 μs 08:01:02,179 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,179 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,179 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,179 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,179 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.179] [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@458464ec 08:01:02,180 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,180 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,180 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,180 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,180 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,180 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,180 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,180 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,181 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,181 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,181 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,181 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,182 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 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,182 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,182 PM [test-pekko.actor.default-dispatcher-14] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,182 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#896,testCaptureSnapshotOnLastEntryInAppendEntries-writer-173]/waiting [ERROR] [07/07/2025 20:01:02.182] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.868 ms 08:01:02,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.80 μs 08:01:02,182 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,182 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,182 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,183 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,183 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.183] [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@26f90236 08:01:02,183 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,183 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,183 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,184 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,184 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,184 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,184 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,184 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,185 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 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,185 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,186 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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,186 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#897,testCaptureSnapshotOnLastEntryInAppendEntries-writer-174]/waiting 08:01:02,187 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.517 ms 08:01:02,187 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.43 μs 08:01:02,187 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [07/07/2025 20:01:02.186] [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.0/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$4(FollowerTest.java:1291) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:193) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:160) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:153) at org.opendaylight.controller.cluster.raft@11.0.0/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:207) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.0/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.0/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.0/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.0/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.0/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) 08:01:02,187 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,187 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,187 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,187 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:02.187] [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@21057e69 08:01:02,187 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:02,188 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,188 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:01:02,188 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:02,188 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,188 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 08:01:02,188 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 08:01:02,188 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,190 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 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 08:01:02,190 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0B58B514.tmp 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0B58B514.v1 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0B58B514.v1 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-07T20:01:02.190362900Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0B58B514.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.446 ms, resetting timer for the next recovery snapshot 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 08:01:02,195 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 08:01:02,196 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:01:02,196 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 193.1 μs with journalIndex=1 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:01:02,197 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 8.660 ms 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 08:01:02,197 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 08:01:02,198 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 08:01:02,198 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 08:01:02,198 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 08:01:02,198 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 08:01:02,198 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 08:01:02,201 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:01:02,201 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 4.409 ms 08:01:02,201 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.620 μs 08:01:02,202 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:01:02,202 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:01:02,202 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08e5730@49cf35b7} 08:01:02,202 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 08:01:02,202 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 08:01:02,202 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 08:01:02,202 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 865.6 μs 08:01:02,202 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,202 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 08:01:02,202 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 08:01:02,203 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0C1C1661.tmp 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08e5730@49cf35b7} 08:01:02,203 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.565 ms [WARN] [07/07/2025 20:01:02.204] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 08:01:02,206 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0C1C1661.v1 08:01:02,206 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0B58B514.v1 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0C1C1661.v1 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-07T20:01:02.190362900Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0B58B514.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-07T20:01:02.203167329Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0C1C1661.v1, size=555, entryCompress=NONE, stateCompress=NONE} 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d529] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:01:02,207 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:01:02,207 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-07T20:01:02.203167329Z 08:01:02,207 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.667 ms 08:01:02,207 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 206.0 μs 08:01:02,207 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:01:02,207 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 08:01:02,297 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0C1C1661.v1 08:01:02,297 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:01:02,297 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 08:01:02,297 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 08:01:02,297 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-07T20:01:02.203167329Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4153971125983652003/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000686C277E-0C1C1661.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 08:01:02,300 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1095310192] 08:01:02,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-1792958805] 08:01:02,311 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-109439795] 08:01:02,311 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 08:01:02,311 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#898,testCaptureSnapshotOnLastEntryInAppendEntries-writer-175]/waiting 08:01:02,311 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 104.1 ms 08:01:02,312 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 15.89 μs 08:01:02,312 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-175] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 08:01:02,312 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,312 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 08:01:02,312 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,312 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:02,315 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#349365207] 08:01:02,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#499711405] 08:01:02,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1126379439] 08:01:02,321 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 08:01:02,321 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,324 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 08:01:02,324 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:01:02,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1218756781] 08:01:02,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1347186162] 08:01:02,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-460567721] 08:01:02,327 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 08:01:02,327 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,328 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 08:01:02,328 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]]} 08:01:02,328 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:02,328 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:01:02,328 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:01:02,328 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:01:02,328 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:01:02,329 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} 08:01:02,329 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,329 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:01:02,329 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:01:02,329 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#325376389] 08:01:02,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1151091694] 08:01:02,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#218297172] 08:01:02,332 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 08:01:02,332 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,332 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 08:01:02,332 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]]} 08:01:02,332 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 08:01:02,333 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} 08:01:02,333 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,333 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 08:01:02,334 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]]} 08:01:02,334 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 08:01:02,334 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} 08:01:02,334 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:01:02,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-882263253] 08:01:02,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1119187491] 08:01:02,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-751948969] 08:01:02,337 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1673985518] 08:01:02,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1273902666] 08:01:02,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-468778647] 08:01:02,341 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 08:01:02,341 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,342 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 08:01:02,342 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]]} 08:01:02,342 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 08:01:02,342 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} 08:01:02,343 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,343 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:01:02,343 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]]} 08:01:02,343 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 08:01:02,343 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} 08:01:02,343 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:01:02,344 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]]} 08:01:02,344 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 08:01:02,344 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} 08:01:02,344 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:01:02,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#1033166371] 08:01:02,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-798601987] 08:01:02,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-487750465] 08:01:02,347 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 08:01:02,347 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,348 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]]} 08:01:02,348 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:02,348 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 08:01:02,348 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:01:02,348 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:01:02,348 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:01:02,348 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} 08:01:02,348 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:01:02,348 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:01:02,348 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 08:01:02,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1521165395] 08:01:02,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1882062615] 08:01:02,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-966626512] 08:01:02,350 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 08:01:02,351 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,352 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:01:02,353 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 08:01:02,353 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 08:01:02,354 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:01:02,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#311354564] 08:01:02,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#605599818] 08:01:02,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#2101111074] 08:01:02,364 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 08:01:02,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,365 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 08:01:02,366 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]]} 08:01:02,366 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:02,366 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:01:02,366 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:01:02,366 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:01:02,366 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:01:02,366 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} 08:01:02,366 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,367 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:01:02,367 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:01:02,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#2115573872] 08:01:02,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1456584033] 08:01:02,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1790572113] 08:01:02,373 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:01:02,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,373 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 08:01:02,374 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]]} 08:01:02,374 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 08:01:02,374 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} 08:01:02,374 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-389144358] 08:01:02,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-2041473924] 08:01:02,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#416858359] 08:01:02,377 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/07/2025 20:01:02.377] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@79ac68b 08:01:02,378 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 08:01:02,378 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:01:02,378 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:01:02,378 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 08:01:02,378 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:02,378 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 08:01:02,378 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 08:01:02,378 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:01:02,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 08:01:02,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:01:02,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:01:02,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 08:01:02,380 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:01:02,380 PM [test-pekko.actor.default-dispatcher-7] [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 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 08:01:02,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-16CD6F12.tmp 08:01:02,385 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-16CD6F12.v1 08:01:02,385 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-16CD6F12.v1 08:01:02,385 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:01:02,385 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:01:02,385 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:01:02,385 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-07T20:01:02.382562066Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-16CD6F12.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.524 ms, resetting timer for the next recovery snapshot 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 176.9 μs with journalIndex=1 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 08:01:02,386 PM [test-pekko.actor.default-dispatcher-7] [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]]} 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [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} 08:01:02,387 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 8.247 ms 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 08:01:02,387 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 08:01:02,392 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 08:01:02,392 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 08:01:02,392 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:01:02,392 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 5.722 ms 08:01:02,392 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08e5730@686f2369} 08:01:02,392 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:01:02,392 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 2.710 μs 08:01:02,392 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08e5730@686f2369} 08:01:02,392 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 08:01:02,393 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 08:01:02,393 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 08:01:02,393 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 08:01:02,393 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:01:02,393 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 914.5 μs 08:01:02,393 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:01:02,393 PM [test-pekko.actor.default-dispatcher-7] [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] 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08e5730@686f2369} 08:01:02,394 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 6.829 ms 08:01:02,394 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-177CA86C.tmp [WARN] [07/07/2025 20:01:02.394] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-177CA86C.v1 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-16CD6F12.v1 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-177CA86C.v1 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-07T20:01:02.382562066Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-16CD6F12.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-07T20:01:02.394045548Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-177CA86C.v1, size=539, entryCompress=NONE, stateCompress=NONE} 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d293093] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:01:02,396 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:01:02,396 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-07T20:01:02.394045548Z 08:01:02,396 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 08:01:02,396 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.763 ms 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 131.7 μs 08:01:02,396 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 08:01:02,396 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:01:02,538 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-177CA86C.v1 08:01:02,538 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:01:02,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 08:01:02,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 08:01:02,539 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-07T20:01:02.394045548Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13437119775078301121/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000686C277E-177CA86C.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 08:01:02,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#926556884] 08:01:02,542 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1763394032] 08:01:02,542 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-240023892] 08:01:02,542 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 08:01:02,543 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#901,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176]/waiting 08:01:02,543 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 146.3 ms 08:01:02,543 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 30.13 μs 08:01:02,543 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-176] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 08:01:02,543 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 08:01:02,543 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 08:01:02,543 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:01:02,543 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:01:02,547 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 08:01:02,547 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,548 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 08:01:02,548 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]]} 08:01:02,548 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 08:01:02,549 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} 08:01:02,549 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 08:01:02,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-1483973787] 08:01:02,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-2018678486] 08:01:02,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#1018054892] 08:01:02,552 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 08:01:02,552 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,552 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 08:01:02,553 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 08:01:02,553 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 08:01:02,553 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 08:01:02,553 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 08:01:02,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-674562531] 08:01:02,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-2008605440] 08:01:02,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#683007712] 08:01:02,556 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 08:01:02,556 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,556 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 08:01:02,557 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]]} 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:01:02,557 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:01:02,557 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:01:02,557 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} 08:01:02,557 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:01:02,557 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 08:01:02,557 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:01:02,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:01:02,557 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:01:02,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:01:02,557 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:01:02,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:01:02,557 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:01:02,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:01:02,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-872070660] 08:01:02,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-1917321637] 08:01:02,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1874873500] 08:01:02,560 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 08:01:02,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,560 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 08:01:02,560 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 08:01:02,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1045265850] 08:01:02,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-751490456] 08:01:02,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-174440872] 08:01:02,563 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 08:01:02,563 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,563 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:01:02,563 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:01:02,563 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:01:02,563 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:01:02,564 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 08:01:02,564 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]]} 08:01:02,564 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 08:01:02,564 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:02,564 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:01:02,564 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 08:01:02,564 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:01:02,564 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:01:02,564 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} 08:01:02,564 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 08:01:02,564 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:01:02,564 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:01:02,564 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:01:02,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-1055811617] 08:01:02,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-1848749750] 08:01:02,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1141547205] 08:01:02,567 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 08:01:02,567 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,567 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 08:01:02,568 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]]} 08:01:02,568 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 08:01:02,568 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} 08:01:02,568 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:01:02,568 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:01:02,569 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]]} 08:01:02,569 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 08:01:02,569 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} 08:01:02,569 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:01:02,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:01:02,570 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]]} 08:01:02,570 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 08:01:02,570 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} 08:01:02,570 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:01:02,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#1562586213] 08:01:02,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1661179368] 08:01:02,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#187000657] 08:01:02,573 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 08:01:02,573 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,773 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:01:02,773 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.196:17355, Removed) 08:01:02,773 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 08:01:02,773 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:01:02,773 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:01:02,773 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:01:02,773 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-1047123426] 08:01:02,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#631810507] 08:01:02,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#559913566] 08:01:02,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,778 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 08:01:02,979 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:01:02,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1712768797] 08:01:02,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#1426502729] 08:01:02,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1664768682] 08:01:02,992 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 08:01:02,993 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:02,995 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 08:01:02,996 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 08:01:02,996 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1614036784] 08:01:03,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-1465127335] 08:01:03,7 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-1312884029] 08:01:03,10 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 08:01:03,10 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:03,11 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]]} 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:01:03,12 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} 08:01:03,12 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 08:01:03,12 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:01:03,13 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:01:03,13 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:01:03,13 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:01:03,13 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:01:03,13 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:01:03,13 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:01:03,13 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:01:03,14 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:01:03,14 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 08:01:03,14 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 08:01:03,15 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-1484907387] 08:01:03,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#189651363] 08:01:03,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-292555492] 08:01:03,28 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 08:01:03,29 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:03,29 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:01:03,30 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:01:03,30 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:01:03,30 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:01:03,31 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]]} 08:01:03,32 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} 08:01:03,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1609126465] 08:01:03,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1300742169] 08:01:03,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1961738216] 08:01:03,46 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 08:01:03,46 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:03,47 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 08:01:03,48 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]]} 08:01:03,48 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:01:03,49 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:01:03,49 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:01:03,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#706363151] 08:01:03,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1048633455] 08:01:03,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-1861082727] 08:01:03,63 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/07/2025 20:01:03.064] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@57aabf2 08:01:03,64 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:03,64 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:01:03,64 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:01:03,65 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 08:01:03,66 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 08:01:03,66 PM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 08:01:03,66 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 08:01:03,66 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:01:03,68 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 08:01:03,68 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:01:03,68 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:01:03,68 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:01:03,68 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:03,68 PM [test-pekko.actor.default-dispatcher-14] [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 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:01:03,71 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-044009F6.tmp 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-044009F6.v1 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-044009F6.v1 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-07T20:01:03.071305718Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-044009F6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 3.438 ms, resetting timer for the next recovery snapshot 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 08:01:03,74 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 127.3 μs with journalIndex=1 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [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]]} 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [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} 08:01:03,75 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 8.933 ms 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 08:01:03,75 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 08:01:03,79 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 08:01:03,79 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 08:01:03,79 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.377 ms 08:01:03,79 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:01:03,79 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 3.250 μs 08:01:03,79 PM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c08e5730@62de775f} 08:01:03,80 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:01:03,80 PM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c08e5730@62de775f} 08:01:03,80 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 08:01:03,80 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 08:01:03,80 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 08:01:03,80 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 899.1 μs 08:01:03,80 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:01:03,80 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 08:01:03,80 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [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] 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [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/0x00000007c08e5730@62de775f} 08:01:03,81 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.tmp 08:01:03,81 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.617 ms [WARN] [07/07/2025 20:01:03.081] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-044009F6.v1 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-07-07T20:01:03.071305718Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-044009F6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-07T20:01:03.081164307Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1, size=573, entryCompress=NONE, stateCompress=NONE} 08:01:03,83 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d321320] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:01:03,83 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:01:03,83 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-07T20:01:03.081164307Z 08:01:03,83 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 08:01:03,84 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 08:01:03,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.126 ms 08:01:03,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 08:01:03,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 08:01:03,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:01:03,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 188.3 μs 08:01:03,84 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:01:03,84 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:01:03,226 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1 08:01:03,227 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:01:03,227 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:01:03,227 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:01:03,227 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-07T20:01:03.081164307Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:01:03,228 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:01:03,239 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#904,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177]/waiting 08:01:03,239 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 155.5 ms 08:01:03,239 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 21.29 μs 08:01:03,239 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-177] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 08:01:03,240 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:01:03,240 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:01:03,240 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:03,240 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/07/2025 20:01:03.241] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@151b668e 08:01:03,241 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:01:03,242 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:01:03,242 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:01:03,242 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 08:01:03,243 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 08:01:03,243 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 08:01:03,243 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 08:01:03,243 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 08:01:03,244 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:03,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1 08:01:03,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:01:03,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 08:01:03,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 08:01:03,245 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-07T20:01:03.081164307Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9597762609003950051/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000686C277F-04D67813.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:01:03,245 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-07T20:01:03.081164307Z 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 149.6 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 286.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 08:01:03,246 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 148.7 μs with journalIndex=4 08:01:03,247 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1058832578] 08:01:03,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-1069885003] 08:01:03,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#88152454] 08:01:03,258 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:01:03,258 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#907,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-178]/waiting 08:01:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.71 ms 08:01:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.64 μs 08:01:03,258 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-178] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 08:01:03,258 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:01:03,258 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 08:01:03,258 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:03,258 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:01:03,262 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 08:01:03,263 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:03,563 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:01:03,693 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:01:03,694 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 08:01:03,944 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 08:01:04,144 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 08:01:04,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#358567919] 08:01:04,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#752070701] 08:01:04,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#1334484108] 08:01:04,158 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,159 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:01:04,159 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 08:01:04,159 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:01:04,159 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:01:04,160 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:01:04,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#181476132] 08:01:04,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-400643914] 08:01:04,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1675820014] 08:01:04,166 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,168 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 08:01:04,169 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 08:01:04,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1931563883] 08:01:04,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#400937154] 08:01:04,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-1276680982] 08:01:04,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,174 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]]} 08:01:04,175 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:01:04,175 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 08:01:04,175 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:01:04,175 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:01:04,175 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:01:04,175 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} 08:01:04,175 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 08:01:04,175 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 08:01:04,176 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:01:04,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:01:04,176 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 08:01:04,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#1519235742] 08:01:04,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1300893055] 08:01:04,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-840556723] 08:01:04,178 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,178 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 08:01:04,179 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 08:01:04,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#1792470916] 08:01:04,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#649664871] 08:01:04,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#1885335124] 08:01:04,181 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,181 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 08:01:04,181 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 08:01:04,182 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} 08:01:04,182 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 08:01:04,182 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 08:01:04,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:01:04,183 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 08:01:04,183 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. 08:01:04,183 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 08:01:04,184 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 08:01:04,184 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 08:01:04,185 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:01:04,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1932532259] 08:01:04,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#1669051330] 08:01:04,186 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-29137670] 08:01:04,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:01:04,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:01:04,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,187 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 08:01:04,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:01:04,188 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:01:04,188 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:01:04,188 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:01:04,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-557657853] 08:01:04,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-1112191676] 08:01:04,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#1378186586] 08:01:04,190 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,190 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 08:01:04,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-432504241] 08:01:04,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1756262784] 08:01:04,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#2092231096] 08:01:04,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:01:04,193 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 08:01:04,193 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:01:04,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#180792557] 08:01:04,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-717430737] 08:01:04,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#702164533] [INFO] [07/07/2025 20:01:04.194] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:01:04,194 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/07/2025 20:01:04.195] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.196:17355) [INFO] [07/07/2025 20:01:04.195] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - Exiting completed [INFO] [07/07/2025 20:01:04.195] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - Shutting down... [INFO] [07/07/2025 20:01:04.195] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.196:17355] - Successfully shut down 08:01:04,196 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - Exiting completed 08:01:04,197 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - Shutting down... 08:01:04,197 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.196:17355] - Successfully shut down [INFO] [07/07/2025 20:01:04.197] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.196:17355/system/remoting-terminator] Shutting down remote daemon. 08:01:04,197 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 08:01:04,197 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/07/2025 20:01:04.197] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.196:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/07/2025 20:01:04.199] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.196:17355/system/remoting-terminator] Remoting shut down. 08:01:04,199 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/07/2025 20:01:04.199] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger