Skip to content

Commit fd1feca

Browse files
Merge b7d4439 into cca5246
2 parents cca5246 + b7d4439 commit fd1feca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/health_check/health_check.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1487,12 +1487,16 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
14871487
void FillVDiskStatus(const TString& vSlotId, Ydb::Monitoring::StorageVDiskStatus& storageVDiskStatus, TSelfCheckContext context) {
14881488
auto itVSlot = BSConfigVSlots.find(vSlotId);
14891489
const TEvInterconnect::TNodeInfo* nodeInfo = nullptr;
1490+
1491+
context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->mutable_id()->Clear();
1492+
context.Location.mutable_storage()->mutable_pool()->mutable_group()->clear_id(); // you can see VDisks Group Id in vSlotId field
14901493
if (itVSlot != BSConfigVSlots.end()) {
14911494
TNodeId nodeId = itVSlot->second->vslotid().nodeid();
14921495
auto itNodeInfo = MergedNodeInfo.find(nodeId);
14931496
if (itNodeInfo != MergedNodeInfo.end()) {
14941497
nodeInfo = itNodeInfo->second;
14951498
}
1499+
context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->add_id(GetVDiskId(*itVSlot->second));
14961500
context.Location.mutable_storage()->mutable_node()->set_id(nodeId);
14971501
} else {
14981502
context.Location.mutable_storage()->mutable_node()->clear_id();
@@ -1505,10 +1509,6 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
15051509
context.Location.mutable_storage()->mutable_node()->clear_port();
15061510
}
15071511

1508-
context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->mutable_id()->Clear();
1509-
context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->add_id(GetVDiskId(*itVSlot->second));
1510-
context.Location.mutable_storage()->mutable_pool()->mutable_group()->clear_id(); // you can see VDisks Group Id in vSlotId field
1511-
15121512
storageVDiskStatus.set_id(vSlotId);
15131513

15141514
if (itVSlot == BSConfigVSlots.end()) { // this report, in theory, can't happen because there was slot mention in bsc group info. this slot info have to exists in bsc too

0 commit comments

Comments
 (0)