diff options
author | Alexander Rutkovsky <alexvru@ydb.tech> | 2024-05-31 22:46:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 22:46:04 +0300 |
commit | 74b0cb997cce932b9ee80a9019552db25c452ca1 (patch) | |
tree | 0d9e4778d118968a4aa292e3db41f19393521827 | |
parent | 085409f92bc6b59684015698aa22b21afed3e410 (diff) | |
download | ydb-74b0cb997cce932b9ee80a9019552db25c452ca1.tar.gz |
Fix BSC behaviour after start before first node connection (#5097)
-rw-r--r-- | ydb/core/mind/bscontroller/cmds_box.cpp | 2 | ||||
-rw-r--r-- | ydb/core/mind/bscontroller/cmds_storage_pool.cpp | 4 | ||||
-rw-r--r-- | ydb/core/mind/bscontroller/impl.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ydb/core/mind/bscontroller/cmds_box.cpp b/ydb/core/mind/bscontroller/cmds_box.cpp index b01dd67ec29..e1e821c5c64 100644 --- a/ydb/core/mind/bscontroller/cmds_box.cpp +++ b/ydb/core/mind/bscontroller/cmds_box.cpp @@ -213,7 +213,7 @@ namespace NKikimr::NBsController { for (const auto& [id, slot] : pdisk->VSlotsOnPDisk) { if (slot->Group) { auto *m = VSlots.FindForUpdate(slot->VSlotId); - m->Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING; + m->Status = NKikimrBlobStorage::EVDiskStatus::ERROR; m->IsReady = false; TGroupInfo *group = Groups.FindForUpdate(slot->Group->ID); GroupFailureModelChanged.insert(slot->Group->ID); diff --git a/ydb/core/mind/bscontroller/cmds_storage_pool.cpp b/ydb/core/mind/bscontroller/cmds_storage_pool.cpp index 7356c0bbe76..e80d8ba8031 100644 --- a/ydb/core/mind/bscontroller/cmds_storage_pool.cpp +++ b/ydb/core/mind/bscontroller/cmds_storage_pool.cpp @@ -692,7 +692,7 @@ namespace NKikimr::NBsController { TGroupInfo *group = Groups.FindForUpdate(vslot->GroupId); vslot->Mood = TMood::Wipe; - vslot->Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING; + vslot->Status = NKikimrBlobStorage::EVDiskStatus::ERROR; vslot->IsReady = false; GroupFailureModelChanged.insert(group->ID); group->CalculateGroupStatus(); @@ -738,7 +738,7 @@ namespace NKikimr::NBsController { TGroupInfo *group = Groups.FindForUpdate(vslot->GroupId); vslot->Mood = targetMood; - vslot->Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING; + vslot->Status = NKikimrBlobStorage::EVDiskStatus::ERROR; vslot->IsReady = false; GroupFailureModelChanged.insert(group->ID); group->CalculateGroupStatus(); diff --git a/ydb/core/mind/bscontroller/impl.h b/ydb/core/mind/bscontroller/impl.h index 0898a8fc7b7..b42f2de788d 100644 --- a/ydb/core/mind/bscontroller/impl.h +++ b/ydb/core/mind/bscontroller/impl.h @@ -124,7 +124,7 @@ public: TVSlotReadyTimestampQ::iterator VSlotReadyTimestampIter; public: - NKikimrBlobStorage::EVDiskStatus Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING; + NKikimrBlobStorage::EVDiskStatus Status = NKikimrBlobStorage::EVDiskStatus::ERROR; bool IsReady = false; bool OnlyPhantomsRemain = false; |