Skip to content

Commit d2e4bb8

Browse files
authored
Mon: Fix Start call if AppData is not set (#12844)
1 parent 33d586d commit d2e4bb8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ydb/core/mon/mon.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,18 +965,19 @@ std::future<void> TMon::Start(TActorSystem* actorSystem) {
965965
NLwTraceMonPage::RegisterPages(IndexMonPage.Get());
966966
NLwTraceMonPage::ProbeRegistry().AddProbesList(LWTRACE_GET_PROBES(ACTORLIB_PROVIDER));
967967
NLwTraceMonPage::ProbeRegistry().AddProbesList(LWTRACE_GET_PROBES(MONITORING_PROVIDER));
968+
ui32 executorPool = ActorSystem->AppData<NKikimr::TAppData>() ? ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId : 0;
968969
HttpProxyActorId = ActorSystem->Register(
969970
NHttp::CreateHttpProxy(),
970971
TMailboxType::ReadAsFilled,
971-
ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId);
972+
executorPool);
972973
HttpMonServiceActorId = ActorSystem->Register(
973974
new THttpMonServiceLegacyIndex(IndexMonPage, Config.RedirectMainPageTo),
974975
TMailboxType::ReadAsFilled,
975-
ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId);
976+
executorPool);
976977
auto nodeProxyActorId = ActorSystem->Register(
977978
new THttpMonServiceNodeProxy(HttpProxyActorId),
978979
TMailboxType::ReadAsFilled,
979-
ActorSystem->AppData<NKikimr::TAppData>()->UserPoolId);
980+
executorPool);
980981
NodeProxyServiceActorId = MakeNodeProxyId(ActorSystem->NodeId);
981982
ActorSystem->RegisterLocalService(NodeProxyServiceActorId, nodeProxyActorId);
982983

0 commit comments

Comments
 (0)