diff --git a/ydb/core/blobstorage/vdisk/common/vdisk_mongroups.h b/ydb/core/blobstorage/vdisk/common/vdisk_mongroups.h index 0ecbe7c0c39d..08ef8d56613a 100644 --- a/ydb/core/blobstorage/vdisk/common/vdisk_mongroups.h +++ b/ydb/core/blobstorage/vdisk/common/vdisk_mongroups.h @@ -477,7 +477,7 @@ public: /////////////////////////////////////////////////////////////////////////////////// class TLsmAllLevelsStat { public: - static constexpr ui32 MaxCounterLevels = 20; + static constexpr ui32 MaxCounterLevels = 24; TIntrusivePtr<::NMonitoring::TDynamicCounters> Group; // per-level information diff --git a/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h b/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h index 08629559dde7..ba93bd71be26 100644 --- a/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h +++ b/ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h @@ -492,7 +492,9 @@ namespace NKikimr { for (const auto& seg : level.Segs->Segments) { process(info, seg.Get()); } - ++levelIndex; + if (++levelIndex >= NMonGroup::TLsmAllLevelsStat::MaxCounterLevels) { + break; + } } AllLevelsDataInplaced = allLevelsDataInplaced;