aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew-rykov <arykov@ydb.tech>2023-09-28 17:36:40 +0300
committerandrew-rykov <arykov@ydb.tech>2023-09-28 17:55:38 +0300
commitce773f6205e5590916b0aa017880860acfec51f0 (patch)
treed7fe600e10362c3bdf3e10d7aed77a725cbcfba4
parent7c3eadc2bc74bf74b1e6e8fe945a3fe0c818a24b (diff)
downloadydb-ce773f6205e5590916b0aa017880860acfec51f0.tar.gz
KIKIMR-14204 hc bsc return vdiskid in issues
-rw-r--r--ydb/core/health_check/health_check.cpp11
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);