@@ -227,6 +227,13 @@ class TJsonTenantInfo : public TViewerPipeClient {
227
227
NavigateKeySetResult[path] = MakeRequestSchemeCacheNavigate (path);
228
228
}
229
229
}
230
+ if (getTenantStatusResult.has_serverless_resources ()) {
231
+ tenant.SetType (NKikimrViewer::Serverless);
232
+ TString sharedPath = getTenantStatusResult.serverless_resources ().shared_database_path ();
233
+ if (NavigateKeySetResult.count (sharedPath) == 0 ) {
234
+ NavigateKeySetResult[sharedPath] = MakeRequestSchemeCacheNavigate (sharedPath);
235
+ }
236
+ }
230
237
for (const Ydb::Cms::StorageUnits& unit : getTenantStatusResult.allocated_resources ().storage_units ()) {
231
238
NKikimrViewer::TTenantResource& resource = *tenant.MutableResources ()->AddAllocated ();
232
239
resource.SetType (" storage" );
@@ -388,11 +395,7 @@ class TJsonTenantInfo : public TViewerPipeClient {
388
395
}
389
396
NKikimrViewer::TTenant& tenant = TenantBySubDomainKey[domainInfo->DomainKey ];
390
397
if (domainInfo->ResourcesDomainKey != domainInfo->DomainKey ) {
391
- NKikimrViewer::TTenant& sharedTenant = TenantBySubDomainKey[domainInfo->ResourcesDomainKey ];
392
- if (sharedTenant.GetType () != NKikimrViewer::Shared) {
393
- sharedTenant.SetType (NKikimrViewer::Shared);
394
- RequestSchemeCacheNavigate (domainInfo->ResourcesDomainKey );
395
- }
398
+
396
399
tenant.SetType (NKikimrViewer::Serverless);
397
400
tenant.SetResourceId (GetDomainId (domainInfo->ResourcesDomainKey ));
398
401
}
@@ -439,8 +442,10 @@ class TJsonTenantInfo : public TViewerPipeClient {
439
442
Subscribers.insert (activeNode);
440
443
std::optional<TActorId> cache = MakeDatabaseMetadataCacheId (activeNode);
441
444
if (MetadataCacheRequested.insert (ev->Get ()->Path ).second ) {
442
- SelfCheckResults[activeNode] = MakeRequest<NHealthCheck::TEvSelfCheckResultProto>(*cache, new NHealthCheck::TEvSelfCheckRequestProto,
443
- IEventHandle::FlagTrackDelivery | IEventHandle::FlagSubscribeOnSession, activeNode);
445
+ if (SelfCheckResults.count (activeNode) == 0 ) {
446
+ SelfCheckResults[activeNode] = MakeRequest<NHealthCheck::TEvSelfCheckResultProto>(*cache, new NHealthCheck::TEvSelfCheckRequestProto,
447
+ IEventHandle::FlagTrackDelivery | IEventHandle::FlagSubscribeOnSession, activeNode);
448
+ }
444
449
}
445
450
}
446
451
RequestDone ();
0 commit comments