diff options
author | serg-belyakov <serg-belyakov@yandex-team.com> | 2023-02-07 12:40:38 +0300 |
---|---|---|
committer | serg-belyakov <serg-belyakov@yandex-team.com> | 2023-02-07 12:40:38 +0300 |
commit | 5bb4d425bb72b388d18ada7bac07e5f2d8f1b9d6 (patch) | |
tree | c27c450a6f663c9aae56de3363662eb8e8eda367 | |
parent | 4535f4e711e69469a491902cd083b932d1e7f468 (diff) | |
download | ydb-5bb4d425bb72b388d18ada7bac07e5f2d8f1b9d6.tar.gz |
Better UT output, change cluster parameters in test,
UT output, change cluster parameters in test
-rw-r--r-- | ydb/core/mind/bscontroller/ut_selfheal/main.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ydb/core/mind/bscontroller/ut_selfheal/main.cpp b/ydb/core/mind/bscontroller/ut_selfheal/main.cpp index 245f821f06..8a608378f3 100644 --- a/ydb/core/mind/bscontroller/ut_selfheal/main.cpp +++ b/ydb/core/mind/bscontroller/ut_selfheal/main.cpp @@ -96,7 +96,20 @@ Y_UNIT_TEST_SUITE(BsControllerTest) { for (const auto& vslot : response.GetStatus(0).GetBaseConfig().GetVSlot()) { const auto& id = vslot.GetVSlotId(); const TPDiskId pdiskId(id.GetNodeId(), id.GetPDiskId()); - UNIT_ASSERT(active.count(pdiskId)); + if (!active.count(pdiskId)) { + Ctest << "active# { "; + for (auto id : active) { + Ctest << id.ToString() << " "; + } + Ctest << " }" << Endl; + Ctest << "faulty# { "; + for (auto id : faulty) { + Ctest << id.ToString() << " "; + } + Ctest << " }" << Endl; + Ctest << "pdiskId# " << pdiskId.ToString() << Endl; + UNIT_FAIL("non-active disk is present in group"); + } } UNIT_ASSERT_C(CheckGroupLayout(geom, response.GetStatus(0).GetBaseConfig(), error), "Error on step# " << i << ", ErrorReason# " << error); @@ -108,6 +121,6 @@ Y_UNIT_TEST_SUITE(BsControllerTest) { } Y_UNIT_TEST(SelfHealMirror3dc) { - TestSelfHeal(3, 4, 1, 4, 48, "mirror-3-dc", TBlobStorageGroupType::ErasureMirror3dc); + TestSelfHeal(3, 4, 3, 4, 128, "mirror-3-dc", TBlobStorageGroupType::ErasureMirror3dc); } } |