Skip to content

Commit b9eddd2

Browse files
va-kuznecovVlad Kuznecov
and
Vlad Kuznecov
authored
Merge into 24-3. Add new INFO LOG message for groups which cannot be healed by SelfHeal (#8628)
Co-authored-by: Vlad Kuznecov <[email protected]>
1 parent 250822e commit b9eddd2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ydb/core/mind/bscontroller/self_heal.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,28 @@ namespace NKikimr::NBsController {
432432
*v, group.Topology, isSelfHealReasonDecommit, DonorMode));
433433
} else {
434434
++counter; // this group can't be reassigned right now
435+
436+
auto log = [&]() {
437+
TStringStream ss;
438+
ss << "[";
439+
bool first = true;
440+
for (const auto& [vdiskId, vdisk] : group.Content.VDisks) {
441+
if (!std::exchange(first, false)) {
442+
ss << ",";
443+
}
444+
ss << "{";
445+
ss << vdiskId;
446+
ss << (IsReady(vdisk, now) ? " Ready" : " NotReady");
447+
ss << (vdisk.Faulty ? " Faulty" : "");
448+
ss << (vdisk.Bad ? " IsBad" : "");
449+
ss << (vdisk.Decommitted ? " Decommitted" : "");
450+
ss << "}";
451+
}
452+
ss << "]";
453+
return ss.Str();
454+
};
455+
456+
STLOG(PRI_INFO, BS_SELFHEAL, BSSH11, "group can't be reassigned right now " << log(), (GroupId, group.GroupId));
435457
}
436458
}
437459

0 commit comments

Comments
 (0)