Skip to content

Commit

Permalink
Mon: Fix Start call if AppData is not set (#12844)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkovalev authored Dec 20, 2024
1 parent 33d586d commit d2e4bb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ydb/core/mon/mon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,18 +965,19 @@ std::future<void> TMon::Start(TActorSystem* actorSystem) {
NLwTraceMonPage::RegisterPages(IndexMonPage.Get());
NLwTraceMonPage::ProbeRegistry().AddProbesList(LWTRACE_GET_PROBES(ACTORLIB_PROVIDER));
NLwTraceMonPage::ProbeRegistry().AddProbesList(LWTRACE_GET_PROBES(MONITORING_PROVIDER));
ui32 executorPool = ActorSystem->AppData<NKikimr::TAppData>() ? ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId : 0;
HttpProxyActorId = ActorSystem->Register(
NHttp::CreateHttpProxy(),
TMailboxType::ReadAsFilled,
ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId);
executorPool);
HttpMonServiceActorId = ActorSystem->Register(
new THttpMonServiceLegacyIndex(IndexMonPage, Config.RedirectMainPageTo),
TMailboxType::ReadAsFilled,
ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId);
executorPool);
auto nodeProxyActorId = ActorSystem->Register(
new THttpMonServiceNodeProxy(HttpProxyActorId),
TMailboxType::ReadAsFilled,
ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId);
executorPool);
NodeProxyServiceActorId = MakeNodeProxyId(ActorSystem->NodeId);
ActorSystem->RegisterLocalService(NodeProxyServiceActorId, nodeProxyActorId);

Expand Down

0 comments on commit d2e4bb8

Please sign in to comment.