Skip to content

Commit 74b0cb9

Browse files
authored
Fix BSC behaviour after start before first node connection (#5097)
1 parent 085409f commit 74b0cb9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ydb/core/mind/bscontroller/cmds_box.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ namespace NKikimr::NBsController {
213213
for (const auto& [id, slot] : pdisk->VSlotsOnPDisk) {
214214
if (slot->Group) {
215215
auto *m = VSlots.FindForUpdate(slot->VSlotId);
216-
m->Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING;
216+
m->Status = NKikimrBlobStorage::EVDiskStatus::ERROR;
217217
m->IsReady = false;
218218
TGroupInfo *group = Groups.FindForUpdate(slot->Group->ID);
219219
GroupFailureModelChanged.insert(slot->Group->ID);

ydb/core/mind/bscontroller/cmds_storage_pool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ namespace NKikimr::NBsController {
692692

693693
TGroupInfo *group = Groups.FindForUpdate(vslot->GroupId);
694694
vslot->Mood = TMood::Wipe;
695-
vslot->Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING;
695+
vslot->Status = NKikimrBlobStorage::EVDiskStatus::ERROR;
696696
vslot->IsReady = false;
697697
GroupFailureModelChanged.insert(group->ID);
698698
group->CalculateGroupStatus();
@@ -738,7 +738,7 @@ namespace NKikimr::NBsController {
738738

739739
TGroupInfo *group = Groups.FindForUpdate(vslot->GroupId);
740740
vslot->Mood = targetMood;
741-
vslot->Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING;
741+
vslot->Status = NKikimrBlobStorage::EVDiskStatus::ERROR;
742742
vslot->IsReady = false;
743743
GroupFailureModelChanged.insert(group->ID);
744744
group->CalculateGroupStatus();

ydb/core/mind/bscontroller/impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class TBlobStorageController : public TActor<TBlobStorageController>, public TTa
124124
TVSlotReadyTimestampQ::iterator VSlotReadyTimestampIter;
125125

126126
public:
127-
NKikimrBlobStorage::EVDiskStatus Status = NKikimrBlobStorage::EVDiskStatus::INIT_PENDING;
127+
NKikimrBlobStorage::EVDiskStatus Status = NKikimrBlobStorage::EVDiskStatus::ERROR;
128128
bool IsReady = false;
129129
bool OnlyPhantomsRemain = false;
130130

0 commit comments

Comments
 (0)