[DEBUG] [12/11/2025 10:53:11.369] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:53:11,370 AM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [12/11/2025 10:53:11.370] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [12/11/2025 10:53:11.370] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [12/11/2025 10:53:11.384] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.112:17355] with UID [714144784209202256] 10:53:11,384 AM [test-pekko.actor.default-dispatcher-4] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.112:17355] with UID [714144784209202256] [INFO] [12/11/2025 10:53:11.385] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - Starting up, Pekko version [1.0.3] ... 10:53:11,385 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [12/11/2025 10:53:11.387] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:53:11,387 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [12/11/2025 10:53:11.387] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - Started up successfully 10:53:11,387 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - Started up successfully 10:53:11,388 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:53:11,388 AM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [12/11/2025 10:53:11.388] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [12/11/2025 10:53:11.388] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:53:11,402 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,517 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 10:53:11,517 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:53:11,518 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-1533732181] 10:53:11,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#713842948] 10:53:11,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-877636396] 10:53:11,535 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,538 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 10:53:11,539 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:11,539 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:53:11,539 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:53:11,539 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:53:11,539 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:53:11,539 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,540 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:53:11,540 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:53:11,541 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:53:11,541 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:53:11,541 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:53:11,541 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-1618633906] 10:53:11,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-147433318] 10:53:11,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-1857085392] 10:53:11,559 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,561 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 10:53:11,562 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:53:11,563 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-180894771] 10:53:11,574 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#-1419571376] 10:53:11,574 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-394544341] 10:53:11,578 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,579 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 10:53:11,580 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 10:53:11,580 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,581 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:53:11,581 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 10:53:11,582 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:53:11,582 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:53:11,582 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 10:53:11,582 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 10:53:11,583 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 10:53:11,584 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:53:11,584 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:53:11,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1945929365] 10:53:11,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-1245678016] 10:53:11,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#-1341174005] 10:53:11,600 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,600 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:53:11,601 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:53:11,601 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,601 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:53:11,602 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:53:11,602 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:53:11,603 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:53:11,603 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:53:11,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-434324158] 10:53:11,614 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1475076446] 10:53:11,614 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#2020317859] 10:53:11,619 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,620 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:53:11,621 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#2000543058] 10:53:11,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-1177374069] 10:53:11,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-506953139] 10:53:11,635 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,636 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 10:53:11,636 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:53:11,637 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#2128894416] 10:53:11,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-1652757832] 10:53:11,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#1366467252] 10:53:11,653 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:53:11,653 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,655 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:53:11,655 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:53:11,655 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:53:11,656 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:53:11,656 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:53:11,656 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:53:11,656 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:53:11,657 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:53:11,660 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:53:11,660 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#140760953] 10:53:11,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#1061337838] 10:53:11,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1338556202] 10:53:11,675 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:53:11,675 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,676 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 10:53:11,676 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 10:53:11,677 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,677 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:53:11,677 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#980501853] 10:53:11,688 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1524510255] 10:53:11,688 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-2016971426] 10:53:11,693 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:53:11,693 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,694 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:53:11,694 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:53:11,694 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:53:11,694 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:53:11,695 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:53:11,695 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:53:11,695 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:53:11,696 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:53:11,696 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:11,696 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:11,696 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:53:11,697 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,697 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:53:11,697 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#387441835] 10:53:11,708 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-378234227] 10:53:11,708 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-1891160366] 10:53:11,712 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,713 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:53:11,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#1663048265] 10:53:11,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-409388919] 10:53:11,725 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-681541110] 10:53:11,728 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:53:11,728 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,729 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:11,730 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:11,730 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:11,730 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:53:11,730 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:53:11,730 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:53:11,731 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:53:11,731 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,731 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:11,731 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:53:11,731 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:53:11,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#1521490955] 10:53:11,743 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#1911853909] 10:53:11,743 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#-1991549942] 10:53:11,746 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:53:11,746 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,747 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,748 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:53:11,748 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:53:11,749 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:53:11,749 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:53:11,749 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:53:11,749 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:53:11,750 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 10:53:11,750 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:53:11,750 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:53:11,750 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:53:11,750 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:53:11,750 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:53:11,751 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:53:11,751 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,751 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:53:11,751 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:53:11,751 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:53:11,751 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:53:11,752 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-1680287369] 10:53:11,763 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#-230070151] 10:53:11,763 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#1247905545] 10:53:11,767 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:53:11,767 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,768 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 10:53:11,769 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:53:11,769 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,769 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:53:11,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#1130713183] 10:53:11,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#-1256313359] 10:53:11,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#1775462643] 10:53:11,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,789 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#562301811] 10:53:11,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-1138221726] 10:53:11,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#-1726034656] 10:53:11,804 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:53:11,805 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:11,805 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:53:11,805 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:11,813 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:11,815 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:11,815 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:53:11,815 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:53:11,815 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:53:11,815 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:53:11,815 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:11,816 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:11,816 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:53:11,816 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:53:11,816 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:53:11,816 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:53:11,817 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#-1372052275] 10:53:11,831 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#796766720] 10:53:11,831 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#-47810890] 10:53:11,841 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [12/11/2025 10:53:11.846] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6ab390a5 10:53:11,873 AM [test-pekko.actor.default-dispatcher-4] [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'. [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.846] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:53:11,874 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,874 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,876 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,878 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,878 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,878 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,881 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 10:53:11,882 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,882 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,882 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,882 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,882 AM [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 10:53:11,887 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,887 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:53:11,887 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,887 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,887 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,887 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [12/11/2025 10:53:11.887] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,888 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#817,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 10:53:11,888 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 10.01 ms 10:53:11,888 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 61.09 μs 10:53:11,888 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,889 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,889 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,889 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,889 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.890] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4e99d0bd [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.890] [test-pekko.actor.default-dispatcher-4] [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'. 10:53:11,890 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 10:53:11,892 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,892 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,892 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,893 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,893 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,893 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,893 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,893 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [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 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,895 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,896 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#818,testCaptureSnapshotOnLastEntryInAppendEntries-writer-159]/waiting 10:53:11,896 AM [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,896 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.622 ms 10:53:11,896 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.200 μs 10:53:11,896 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,896 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,896 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,896 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,896 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,897 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,897 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,897 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,897 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,897 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,897 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,898 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,898 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,898 AM [test-pekko.actor.default-dispatcher-4] [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'. [ERROR] [12/11/2025 10:53:11.895] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [WARN] [12/11/2025 10:53:11.900] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@21756993 [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.898] [test-pekko.actor.default-dispatcher-4] [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'. 10:53:11,902 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [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 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,903 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,903 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#819,testCaptureSnapshotOnLastEntryInAppendEntries-writer-160]/waiting 10:53:11,903 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.820 ms 10:53:11,903 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.080 μs 10:53:11,903 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [12/11/2025 10:53:11.903] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,904 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,904 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,904 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,904 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.904] [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@33830005 [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.904] [test-pekko.actor.default-dispatcher-4] [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'. 10:53:11,904 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 10:53:11,904 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,904 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,905 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,905 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,905 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,905 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,905 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,905 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,908 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [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 10:53:11,910 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,911 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,911 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,911 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,911 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,911 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,911 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#820,testCaptureSnapshotOnLastEntryInAppendEntries-writer-161]/waiting 10:53:11,912 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.349 ms 10:53:11,912 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 6.410 μs 10:53:11,912 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,912 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,912 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,912 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,912 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,912 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. [ERROR] [12/11/2025 10:53:11.911] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [WARN] [12/11/2025 10:53:11.913] [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@18fedab [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.912] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 10:53:11,913 AM [test-pekko.actor.default-dispatcher-4] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,913 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,913 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,913 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,914 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,914 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,914 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,914 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,915 AM [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 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,915 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,916 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,916 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,916 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 [ERROR] [12/11/2025 10:53:11.916] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,916 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,917 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#822,testCaptureSnapshotOnLastEntryInAppendEntries-writer-162]/waiting 10:53:11,917 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.450 ms 10:53:11,917 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 5.760 μs 10:53:11,917 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,917 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,917 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,917 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,917 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,918 AM [test-pekko.actor.default-dispatcher-4] [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'. [WARN] [12/11/2025 10:53:11.918] [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@3610431c [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.918] [test-pekko.actor.default-dispatcher-4] [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'. 10:53:11,919 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,919 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,919 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,919 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,919 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,919 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,920 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,920 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,921 AM [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 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,921 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,921 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [12/11/2025 10:53:11.921] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,922 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#823,testCaptureSnapshotOnLastEntryInAppendEntries-writer-163]/waiting 10:53:11,922 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.391 ms 10:53:11,922 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 6.730 μs 10:53:11,922 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,922 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,922 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,922 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,922 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,922 AM [test-pekko.actor.default-dispatcher-4] [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'. [WARN] [12/11/2025 10:53:11.923] [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@519e29e8 [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.922] [test-pekko.actor.default-dispatcher-4] [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'. 10:53:11,923 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,923 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,923 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,923 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,923 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,923 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,923 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,923 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,924 AM [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 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,924 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,925 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,925 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#824,testCaptureSnapshotOnLastEntryInAppendEntries-writer-164]/waiting 10:53:11,925 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.629 ms 10:53:11,925 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 6.480 μs 10:53:11,925 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-164] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [12/11/2025 10:53:11.924] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,925 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,925 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,925 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,925 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.926] [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@4fe61bb9 [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.926] [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'. 10:53:11,926 AM [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'. 10:53:11,926 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,926 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,926 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,927 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,927 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,927 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,927 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,927 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,928 AM [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 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,928 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,928 AM [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,929 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#825,testCaptureSnapshotOnLastEntryInAppendEntries-writer-165]/waiting [ERROR] [12/11/2025 10:53:11.928] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,929 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.564 ms 10:53:11,929 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.160 μs 10:53:11,929 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-165] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,929 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,929 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,929 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,929 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.929] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@637f8bae 10:53:11,929 AM [test-pekko.actor.default-dispatcher-4] [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'. [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.929] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 10:53:11,930 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,930 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,930 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,930 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,930 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,930 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,930 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,930 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,931 AM [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 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,931 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,932 AM [test-pekko.actor.default-dispatcher-14] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,932 AM [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#826,testCaptureSnapshotOnLastEntryInAppendEntries-writer-166]/waiting 10:53:11,932 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.864 ms 10:53:11,932 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 5.560 μs 10:53:11,932 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-166] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped [ERROR] [12/11/2025 10:53:11.932] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,932 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.933] [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@3c544851 [INFO] [pekkoDeadLetter][12/11/2025 10:53:11.933] [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. [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'. 10:53:11,933 AM [test-pekko.actor.default-dispatcher-4] [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'. 10:53:11,933 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,933 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,933 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,934 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,934 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,934 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,934 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,934 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,935 AM [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 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,935 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,935 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [12/11/2025 10:53:11.935] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,936 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#827,testCaptureSnapshotOnLastEntryInAppendEntries-writer-167]/waiting 10:53:11,936 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.143 ms 10:53:11,936 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 6.620 μs 10:53:11,936 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-167] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,936 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,936 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,936 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,936 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.937] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@26e36ae6 10:53:11,937 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,937 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,937 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,937 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,938 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,938 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,938 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,938 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,939 AM [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 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,939 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#828,testCaptureSnapshotOnLastEntryInAppendEntries-writer-168]/waiting [ERROR] [12/11/2025 10:53:11.939] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,939 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.591 ms 10:53:11,939 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.940 μs 10:53:11,939 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-168] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,939 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.940] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4f53758b 10:53:11,940 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,940 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,940 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,940 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,940 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,940 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,940 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,940 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,941 AM [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 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,941 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,941 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#829,testCaptureSnapshotOnLastEntryInAppendEntries-writer-169]/waiting [ERROR] [12/11/2025 10:53:11.941] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,942 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.240 ms 10:53:11,942 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.580 μs 10:53:11,942 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-169] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.942] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@45ddf69f 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,943 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,943 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,943 AM [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 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,943 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,944 AM [test-pekko.actor.default-dispatcher-4] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,944 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#830,testCaptureSnapshotOnLastEntryInAppendEntries-writer-170]/waiting [ERROR] [12/11/2025 10:53:11.944] [test-pekko.actor.internal-dispatcher-7] [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.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:145) at org.opendaylight.controller.cluster.raft@11.0.3-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:232) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction.applyOrElse(PartialFunction.scala:225) at scala.library@2.13.18/scala.PartialFunction.applyOrElse$(PartialFunction.scala:224) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.18/scala.PartialFunction$OrElse.apply(PartialFunction.scala:277) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.opendaylight.controller.repackaged.pekko@11.0.3-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 10:53:11,944 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 1.187 ms 10:53:11,944 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 7.850 μs 10:53:11,944 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-170] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:11,944 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,944 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:11,944 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:11,944 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:11.945] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1e8b05d2 10:53:11,945 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:11,945 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,945 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:53:11,945 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:11,945 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:11,945 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 10:53:11,945 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 10:53:11,945 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,946 AM [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 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:53:11,946 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.tmp 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:11.946816026Z, file=/tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 8.045 ms, resetting timer for the next recovery snapshot 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 10:53:11,954 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 10:53:11,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:53:11,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 302.2 μs with journalIndex=1 10:53:11,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 10:53:11,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 10:53:12,57 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1 10:53:12,57 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:12,57 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:12,57 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:12,57 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:11.946816026Z, file=/tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 10:53:12,58 AM [test-pekko.actor.default-dispatcher-11] [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]]} 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:53:12,59 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 113.6 ms 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [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} 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:53:12,59 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:53:12,60 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 10:53:12,64 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:53:12,64 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:53:12,64 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 5.082 ms 10:53:12,64 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.070 μs 10:53:12,64 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:53:12,64 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0934000@10e38699} 10:53:12,64 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 10:53:12,65 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 10:53:12,65 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 10:53:12,65 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 10:53:12,65 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:53:12,65 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.127 ms 10:53:12,65 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:12,65 AM [test-pekko.actor.default-dispatcher-11] [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] 10:53:12,65 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 10:53:12,66 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:53:12,66 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:53:12,66 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:53:12,66 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 10:53:12,66 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA298-03F01829.tmp 10:53:12,66 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0934000@10e38699} 10:53:12,66 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 6.198 ms [WARN] [12/11/2025 10:53:12.066] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 10:53:12,69 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA298-03F01829.v1 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA298-03F01829.v1 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:11.946816026Z, file=/tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA297-386F441A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-11T10:53:12.066066473Z, file=/tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA298-03F01829.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d209675] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:53:12,70 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:53:12,70 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-12-11T10:53:12.066066473Z 10:53:12,70 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.062 ms 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 10:53:12,70 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 10:53:12,70 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:53:12,71 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 143.8 μs 10:53:12,71 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 10:53:12,71 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:53:12,261 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA298-03F01829.v1 10:53:12,261 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:53:12,261 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 10:53:12,261 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 10:53:12,261 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-11T10:53:12.066066473Z, file=/tmp/junit-12970161885316765814/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000693AA298-03F01829.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:53:12,266 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#2018662819] 10:53:12,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#1925209221] 10:53:12,278 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#537708930] 10:53:12,278 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:53:12,278 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#831,testCaptureSnapshotOnLastEntryInAppendEntries-writer-171]/waiting 10:53:12,279 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 208.0 ms 10:53:12,279 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 23.93 μs 10:53:12,279 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-171] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 10:53:12,279 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:12,279 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 10:53:12,279 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:12,279 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:12,288 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,291 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-581568686] 10:53:12,302 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#1603934276] 10:53:12,302 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#1930056923] 10:53:12,306 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:53:12,306 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,307 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 10:53:12,308 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:53:12,308 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#-357224559] 10:53:12,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1228896034] 10:53:12,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#2035899605] 10:53:12,323 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:53:12,323 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,324 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,324 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,324 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:12,324 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:53:12,324 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:53:12,324 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:53:12,325 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:53:12,325 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,325 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:12,325 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:53:12,325 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:53:12,325 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#1079223983] 10:53:12,336 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#-362200196] 10:53:12,336 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#481557185] 10:53:12,339 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:53:12,339 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,340 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,341 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,341 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:53:12,342 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,342 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:12,342 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:53:12,343 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,343 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 10:53:12,344 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,344 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:53:12,344 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-946700503] 10:53:12,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#830275457] 10:53:12,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#1662880500] 10:53:12,348 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-1330260451] 10:53:12,349 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#-901803826] 10:53:12,349 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-1486986754] 10:53:12,351 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:53:12,351 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,351 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,352 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,352 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:53:12,352 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,352 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:12,352 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:53:12,352 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,353 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:53:12,353 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,353 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:53:12,353 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,353 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:53:12,354 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,354 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:53:12,354 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#-1323251762] 10:53:12,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#780492761] 10:53:12,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#1394235625] 10:53:12,357 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:53:12,357 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,357 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 10:53:12,357 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:12,358 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:53:12,358 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:53:12,358 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:53:12,358 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:53:12,358 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,358 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:53:12,358 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:53:12,358 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:53:12,358 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#830305168] 10:53:12,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#-712885719] 10:53:12,359 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#1827046615] 10:53:12,361 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:53:12,361 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,362 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:53:12,363 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 10:53:12,363 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 10:53:12,364 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:53:12,365 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#360556707] 10:53:12,365 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#-1030843913] 10:53:12,366 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#-1057270795] 10:53:12,368 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:53:12,368 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,368 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,368 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,369 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:12,369 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:53:12,369 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:53:12,369 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-534115576] 10:53:12,370 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-1712829089] 10:53:12,370 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#2051523785] 10:53:12,372 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:53:12,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,372 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,373 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,373 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:53:12,373 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,374 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:12,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#-1470355615] 10:53:12,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-14177107] 10:53:12,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#1693953130] 10:53:12,376 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [12/11/2025 10:53:12.377] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@47f54761 10:53:12,378 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:53:12,378 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:53:12,378 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:53:12,379 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 10:53:12,379 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:12,379 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 10:53:12,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 10:53:12,379 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:53:12,381 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 10:53:12,381 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:53:12,381 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:53:12,381 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:53:12,381 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:53:12,381 AM [test-pekko.actor.default-dispatcher-5] [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 10:53:12,384 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:53:12,384 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 10:53:12,384 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 10:53:12,384 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:12,384 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 10:53:12,384 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:53:12,385 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-16F24258.tmp 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-16F24258.v1 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-16F24258.v1 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:12.384975448Z, file=/tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-16F24258.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:53:12,388 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.995 ms, resetting timer for the next recovery snapshot 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 219.8 μs with journalIndex=1 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 10:53:12,389 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [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]]} 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [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} 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 10:53:12,390 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 10.37 ms 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:53:12,390 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 10:53:12,395 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:53:12,395 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:53:12,395 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.761 ms 10:53:12,395 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:53:12,395 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 3.770 μs 10:53:12,395 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0934000@75e83a7} 10:53:12,395 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:53:12,395 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0934000@75e83a7} 10:53:12,395 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 10:53:12,396 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 10:53:12,396 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 10:53:12,396 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.035 ms 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 10:53:12,396 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [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] 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0934000@75e83a7} 10:53:12,396 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-17A2A078.tmp 10:53:12,396 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 6.121 ms [WARN] [12/11/2025 10:53:12.396] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 10:53:12,400 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-17A2A078.v1 10:53:12,400 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-17A2A078.v1 10:53:12,400 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-16F24258.v1 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:12.384975448Z, file=/tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-16F24258.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-11T10:53:12.396533880Z, file=/tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-17A2A078.v1, size=539, entryCompress=NONE, stateCompress=NONE} 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d628074] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:53:12,401 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:53:12,401 AM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-12-11T10:53:12.396533880Z 10:53:12,401 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 10:53:12,401 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.457 ms 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 10:53:12,401 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:53:12,402 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 185.4 μs 10:53:12,402 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:53:12,402 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 10:53:12,541 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-17A2A078.v1 10:53:12,541 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:53:12,541 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 10:53:12,541 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 10:53:12,541 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-11T10:53:12.396533880Z, file=/tmp/junit-17759253685889440698/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000693AA298-17A2A078.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 10:53:12,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#-1897938738] 10:53:12,555 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-581261024] 10:53:12,555 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#-1056813623] 10:53:12,555 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:53:12,555 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#836,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172]/waiting 10:53:12,555 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 153.9 ms 10:53:12,556 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 25.08 μs 10:53:12,556 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-172] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 10:53:12,556 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:53:12,556 AM [test-pekko.actor.default-dispatcher-4] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 10:53:12,556 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:53:12,556 AM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:53:12,561 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:53:12,561 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,562 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,562 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 10:53:12,563 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 10:53:12,563 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,563 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:53:12,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-985625983] 10:53:12,574 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-75452308] 10:53:12,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#1335964756] 10:53:12,578 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:53:12,578 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,579 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 10:53:12,580 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:53:12,581 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:53:12,581 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:53:12,581 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:53:12,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#507011267] 10:53:12,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-803738413] 10:53:12,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#-1724640423] 10:53:12,598 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:53:12,598 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,599 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 10:53:12,600 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 10:53:12,600 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:53:12,601 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:53:12,601 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:53:12,601 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:53:12,601 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:53:12,601 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:53:12,601 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:53:12,601 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:53:12,601 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:53:12,602 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,602 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:53:12,602 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:53:12,602 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:53:12,603 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:53:12,603 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:53:12,603 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:53:12,603 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:53:12,603 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:53:12,603 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:53:12,603 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:53:12,604 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-1464247135] 10:53:12,615 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-134167022] 10:53:12,615 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-2144460195] 10:53:12,620 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:53:12,620 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,621 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:53:12,621 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:53:12,622 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#-292761534] 10:53:12,634 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#319625500] 10:53:12,634 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#-2027453126] 10:53:12,637 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:53:12,637 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,638 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:53:12,638 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:53:12,639 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:53:12,639 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:53:12,639 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,640 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:53:12,640 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:53:12,641 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:53:12,641 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:53:12,641 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#-452438055] 10:53:12,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#-2071685406] 10:53:12,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#-1413338787] 10:53:12,655 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:53:12,655 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,656 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 10:53:12,657 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,657 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 10:53:12,657 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,658 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:53:12,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:53:12,658 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,659 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 10:53:12,659 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,659 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:53:12,659 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:53:12,660 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 10:53:12,660 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 10:53:12,660 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:12,660 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:53:12,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#-1272555353] 10:53:12,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#-1421038700] 10:53:12,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-1724133888] 10:53:12,675 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:53:12,675 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,875 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:53:12,875 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.112:17355, Removed) 10:53:12,876 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:53:12,876 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:53:12,876 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:53:12,876 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:53:12,876 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-124754712] 10:53:12,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#2089191459] 10:53:12,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#-1558826668] 10:53:12,892 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:12,892 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:53:13,143 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:53:13,144 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#-1291120533] 10:53:13,155 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#248438928] 10:53:13,155 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-425458072] 10:53:13,159 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:53:13,159 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:13,161 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 10:53:13,161 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:53:13,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#-2036314511] 10:53:13,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#-968057427] 10:53:13,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-1082826580] 10:53:13,177 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:53:13,177 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:13,178 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 10:53:13,178 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:53:13,178 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:53:13,178 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:53:13,179 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:53:13,179 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:53:13,179 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:53:13,179 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:13,179 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:53:13,179 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:53:13,179 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:53:13,179 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:53:13,180 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:53:13,180 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:53:13,180 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:53:13,180 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:53:13,180 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:53:13,180 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:53:13,180 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:53:13,180 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:53:13,181 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#2045439950] 10:53:13,192 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-2034719329] 10:53:13,192 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-1491314565] 10:53:13,195 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:53:13,195 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:13,196 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:53:13,196 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:53:13,196 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:53:13,196 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:53:13,197 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 10:53:13,198 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:53:13,198 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#1919437183] 10:53:13,209 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#-395466489] 10:53:13,209 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#1539281054] 10:53:13,212 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:53:13,212 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:13,213 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 10:53:13,213 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 10:53:13,213 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:53:13,213 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:53:13,214 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:53:13,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#1181419504] 10:53:13,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-222090879] 10:53:13,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#1126440311] 10:53:13,217 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [12/11/2025 10:53:13.218] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@433b4958 10:53:13,219 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:13,219 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:53:13,219 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:53:13,220 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 10:53:13,220 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 10:53:13,220 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 10:53:13,220 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:53:13,220 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:53:13,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:53:13,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:53:13,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:53:13,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:53:13,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:13,222 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:53:13,229 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.tmp 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:13.229784377Z, file=/tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:53:13,282 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 53.16 ms, resetting timer for the next recovery snapshot 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 254.5 μs with journalIndex=1 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 10:53:13,283 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 10:53:13,385 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1 10:53:13,385 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:53:13,385 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:53:13,385 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:53:13,385 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:13.229784377Z, file=/tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 10:53:13,386 AM [test-pekko.actor.default-dispatcher-11] [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]]} 10:53:13,386 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:53:13,386 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:53:13,386 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [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} 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 10:53:13,387 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 166.5 ms 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:53:13,387 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 48.91 ms 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 6.590 μs 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0934000@acef7b7} 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0934000@acef7b7} 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 232.1 μs 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0934000@acef7b7} 10:53:13,436 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.tmp 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 49.08 ms 10:53:13,436 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [12/11/2025 10:53:13.437] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 10:53:13,451 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-12-11T10:53:13.229784377Z, file=/tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-0DB23B39.v1, size=419, entryCompress=NONE, stateCompress=NONE} 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-11T10:53:13.436679530Z, file=/tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d542120] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:53:13,452 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:53:13,452 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-12-11T10:53:13.436679530Z 10:53:13,452 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 10:53:13,452 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:53:13,452 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 16.33 ms 10:53:13,453 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 10:53:13,453 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 10:53:13,453 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:53:13,453 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:53:13,453 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 196.8 μs 10:53:13,453 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:53:13,589 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1 10:53:13,590 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:53:13,590 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:53:13,590 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:53:13,590 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-11T10:53:13.436679530Z, file=/tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:53:13,592 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:53:13,603 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#839,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173]/waiting 10:53:13,603 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 150.6 ms 10:53:13,604 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 25.89 μs 10:53:13,604 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-173] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:53:13,604 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:53:13,604 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:53:13,604 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:13,604 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [12/11/2025 10:53:13.605] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@cdeaad4 10:53:13,606 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:53:13,606 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:53:13,606 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:53:13,607 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 10:53:13,608 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 10:53:13,608 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 10:53:13,608 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 10:53:13,608 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-11T10:53:13.436679530Z, file=/tmp/junit-5314518453547212797/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000693AA299-1A07336A.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:53:13,610 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-12-11T10:53:13.436679530Z 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 165.1 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 352.1 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:53:13,611 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 130.3 μs with journalIndex=4 10:53:13,612 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 10:53:13,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-259147740] 10:53:13,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#-778733390] 10:53:13,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-417169090] 10:53:13,624 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:53:13,624 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#844,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-174]/waiting 10:53:13,624 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.95 ms 10:53:13,624 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.78 μs 10:53:13,624 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-174] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 10:53:13,625 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:53:13,625 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 10:53:13,625 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:13,625 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:53:13,629 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:53:13,630 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:13,930 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:53:14,60 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:53:14,60 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:53:14,311 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:53:14,511 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 10:53:14,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#-1416122948] 10:53:14,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#1428748577] 10:53:14,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-1979669004] 10:53:14,528 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:53:14,529 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:53:14,529 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:53:14,529 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:53:14,529 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:53:14,530 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:53:14,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#468601794] 10:53:14,541 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#1542086794] 10:53:14,541 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#446656597] 10:53:14,544 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [12/11/2025 10:53:14.544] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [12/11/2025 10:53:14.545] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.112:17355) [INFO] [12/11/2025 10:53:14.546] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - Exiting completed [INFO] [12/11/2025 10:53:14.546] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - Shutting down... 10:53:14,546 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - Exiting completed 10:53:14,546 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - Shutting down... [INFO] [12/11/2025 10:53:14.546] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.112:17355] - Successfully shut down 10:53:14,547 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.112:17355] - Successfully shut down [INFO] [12/11/2025 10:53:14.548] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.112:17355/system/remoting-terminator] Shutting down remote daemon. 10:53:14,548 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:53:14,548 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [12/11/2025 10:53:14.548] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.112:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [12/11/2025 10:53:14.551] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.112:17355/system/remoting-terminator] Remoting shut down. 10:53:14,551 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [12/11/2025 10:53:14.551] [test-pekko.actor.internal-dispatcher-7] [EventStream] shutting down: StandardOutLogger