Skip to content

Commit

Permalink
Run StatService in test library (ydb-platform#14269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hor911 authored Feb 6, 2025
1 parent f8a532d commit 5ca4cf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ydb/core/testlib/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
#include <ydb/core/kesus/tablet/tablet.h>
#include <ydb/core/sys_view/processor/processor.h>
#include <ydb/core/statistics/aggregator/aggregator.h>
#include <ydb/core/statistics/service/service.h>
#include <ydb/core/keyvalue/keyvalue.h>
#include <ydb/core/persqueue/pq.h>
#include <ydb/core/persqueue/cluster_tracker.h>
Expand Down Expand Up @@ -1363,6 +1364,10 @@ namespace Tests {
Runtime->GetAppData(nodeIdx).Counters);
const TActorId controllerActorId = Runtime->Register(controllerActor, nodeIdx, Runtime->GetAppData(nodeIdx).BatchPoolId);
Runtime->RegisterService(NMemory::MakeMemoryControllerId(0), controllerActorId, nodeIdx);

auto statActor = NStat::CreateStatService();
const TActorId statActorId = Runtime->Register(statActor.Release(), nodeIdx, Runtime->GetAppData(nodeIdx).UserPoolId);
Runtime->RegisterService(NStat::MakeStatServiceID(Runtime->GetNodeId(nodeIdx)), statActorId, nodeIdx);
}
}

Expand Down

0 comments on commit 5ca4cf9

Please sign in to comment.