diff options
author | andrew-rykov <arykov@ydb.tech> | 2023-09-28 17:36:40 +0300 |
---|---|---|
committer | andrew-rykov <arykov@ydb.tech> | 2023-09-28 17:55:38 +0300 |
commit | ce773f6205e5590916b0aa017880860acfec51f0 (patch) | |
tree | d7fe600e10362c3bdf3e10d7aed77a725cbcfba4 | |
parent | 7c3eadc2bc74bf74b1e6e8fe945a3fe0c818a24b (diff) | |
download | ydb-ce773f6205e5590916b0aa017880860acfec51f0.tar.gz |
KIKIMR-14204 hc bsc return vdiskid in issues
-rw-r--r-- | ydb/core/health_check/health_check.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ydb/core/health_check/health_check.cpp b/ydb/core/health_check/health_check.cpp index 68497713c12..9a0e0925d2c 100644 --- a/ydb/core/health_check/health_check.cpp +++ b/ydb/core/health_check/health_check.cpp @@ -1328,6 +1328,15 @@ public: << protoVSlotId.vslotid(); } + static TString GetVDiskId(const NKikimrBlobStorage::TBaseConfig::TVSlot& protoVSlot) { + return TStringBuilder() + << protoVSlot.groupid() << '-' + << protoVSlot.groupgeneration() << '-' + << protoVSlot.failrealmidx() << '-' + << protoVSlot.faildomainidx() << '-' + << protoVSlot.vdiskidx(); + } + static TString GetPDiskId(const NKikimrBlobStorage::TBaseConfig::TPDisk& pDisk) { return TStringBuilder() << pDisk.nodeid() << "-" << pDisk.pdiskid(); } @@ -1505,7 +1514,7 @@ public: } context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->mutable_id()->Clear(); - context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->add_id(vSlotId); + context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->add_id(GetVDiskId(*itVSlot->second)); context.Location.mutable_storage()->mutable_pool()->mutable_group()->clear_id(); // you can see VDisks Group Id in vSlotId field storageVDiskStatus.set_id(vSlotId); |