diff options
author | andrew-rykov <arykov@ydb.tech> | 2023-11-22 01:24:54 +0300 |
---|---|---|
committer | andrew-rykov <arykov@ydb.tech> | 2023-11-22 01:53:08 +0300 |
commit | de456788066ffe4c896e17f768980f18417000ab (patch) | |
tree | ca6412bb4845dd3bf96bfa1ccc3972ed12933803 | |
parent | 676e6ba5ce38641371f10e460f9d572384ad7a8d (diff) | |
download | ydb-de456788066ffe4c896e17f768980f18417000ab.tar.gz |
cluster handler doesn't return whiteboard info without Tablets param
-rw-r--r-- | ydb/core/viewer/json_cluster.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ydb/core/viewer/json_cluster.h b/ydb/core/viewer/json_cluster.h index beefdb5d95..76d5411fe2 100644 --- a/ydb/core/viewer/json_cluster.h +++ b/ydb/core/viewer/json_cluster.h @@ -138,7 +138,7 @@ public: if (ni.NodeId <= dynamicNameserviceConfig->MaxStaticNodeId) { SendRequest(whiteboardServiceId, new TEvWhiteboard::TEvVDiskStateRequest(), IEventHandle::FlagTrackDelivery | IEventHandle::FlagSubscribeOnSession, ni.NodeId); SendRequest(whiteboardServiceId,new TEvWhiteboard::TEvPDiskStateRequest(), IEventHandle::FlagTrackDelivery | IEventHandle::FlagSubscribeOnSession, ni.NodeId); - SendRequest(whiteboardServiceId, new TEvWhiteboard::TEvBSGroupStateRequest(), IEventHandle::FlagTrackDelivery | IEventHandle::FlagSubscribeOnSession, ni.NodeId); + SendRequest(whiteboardServiceId, new TEvWhiteboard::TEvBSGroupStateRequest(), IEventHandle::FlagTrackDelivery | IEventHandle::FlagSubscribeOnSession, ni.NodeId); } } if (Tablets) { @@ -148,6 +148,8 @@ public: void Handle(TEvInterconnect::TEvNodesInfo::TPtr& ev) { EventLog.StartHandleNodesInfoTime = TActivationContext::Now(); + NodesInfo = ev->Release(); + // before making requests to Whiteboard with the Tablets parameter, we need to review the TEvDescribeSchemeResult information if (Tablets) { THolder<TEvTxUserProxy::TEvNavigate> request = MakeHolder<TEvTxUserProxy::TEvNavigate>(); if (!Event->Get()->UserToken.empty()) { @@ -164,9 +166,10 @@ public: record->MutableOptions()->SetReturnPartitionConfig(false); record->MutableOptions()->SetReturnChildren(false); SendRequest(MakeTxProxyID(), request.Release()); + } else { + SendWhiteboardRequests(); } - NodesInfo = ev->Release(); RequestDone(); } |