@@ -129,7 +129,7 @@ namespace NKikimr {
129129 return i + 1 ;
130130 }
131131 }
132- Y_ABORT ( " free level not found" );
132+ Y_ABORT_S (HullCtx-> VCtx -> VDiskLogPrefix << " free level not found" );
133133 return -1 ;
134134 }
135135
@@ -148,7 +148,7 @@ namespace NKikimr {
148148 added++;
149149 it.Next ();
150150 }
151- Y_ABORT_UNLESS (added > 0 );
151+ Y_VERIFY_S (added > 0 , HullCtx-> VCtx -> VDiskLogPrefix );
152152 }
153153
154154 // check and run full compaction if required
@@ -239,7 +239,7 @@ namespace NKikimr {
239239 ToString ().data ()));
240240 }
241241
242- Y_ABORT_UNLESS (freeLevels <= totalPsl);
242+ Y_VERIFY_S (freeLevels <= totalPsl, HullCtx-> VCtx -> VDiskLogPrefix );
243243 double rank = 0.0 ;
244244 if (freeLevels == totalPsl) {
245245 rank = 0.0 ;
@@ -309,7 +309,7 @@ namespace NKikimr {
309309 }
310310 added++;
311311 }
312- Y_ABORT_UNLESS (added);
312+ Y_VERIFY_S (added, HullCtx-> VCtx -> VDiskLogPrefix );
313313 }
314314
315315 void Compact () {
@@ -417,12 +417,12 @@ namespace NKikimr {
417417 // srcIt is equal to srcSegs.begin() and it's fine
418418 }
419419
420- Y_ABORT_UNLESS (srcIt != srcSegs.end ());
420+ Y_VERIFY_S (srcIt != srcSegs.end (), HullCtx-> VCtx -> VDiskLogPrefix );
421421 CompactSst (srcLevel, srcIt);
422422 }
423423
424424 void CompactSst (ui32 srcLevel, typename TSegments::const_iterator srcIt) {
425- Y_ABORT_UNLESS (srcLevel > 0 );
425+ Y_VERIFY_S (srcLevel > 0 , HullCtx-> VCtx -> VDiskLogPrefix );
426426 // srcIt points to the sst to compact
427427 TKey firstKeyToCover = (*srcIt)->FirstKey ();
428428 TKey lastKeyToCover = (*srcIt)->LastKey ();
@@ -453,7 +453,7 @@ namespace NKikimr {
453453 const TSortedLevel &srcLevelData = SliceSnap.GetLevelXRef (srcLevelArrIdx);
454454 if (!srcLevelData.Empty ()) {
455455 const TSegments &srcSegs = srcLevelData.Segs ->Segments ;
456- Y_ABORT_UNLESS (!srcSegs.empty ());
456+ Y_VERIFY_S (!srcSegs.empty (), HullCtx-> VCtx -> VDiskLogPrefix );
457457 for (typename TSegments::const_iterator it = srcSegs.begin (); it != srcSegs.end (); ++it) {
458458 if ((*it)->GetLastLsn () <= attrs.FullCompactionLsn ) {
459459 Sublog.Log () << " TBalanceLevelX::FullCompact: srcLevel# " << srcLevel
@@ -474,7 +474,7 @@ namespace NKikimr {
474474 const TSortedLevel &srcLevelData = SliceSnap.GetLevelXRef (srcLevelArrIdx);
475475 if (!srcLevelData.Empty ()) {
476476 const TSegments &srcSegs = srcLevelData.Segs ->Segments ;
477- Y_ABORT_UNLESS (!srcSegs.empty ());
477+ Y_VERIFY_S (!srcSegs.empty (), HullCtx-> VCtx -> VDiskLogPrefix );
478478 for (typename TSegments::const_iterator it = srcSegs.begin (); it != srcSegs.end (); ++it) {
479479 // for the last level we add a condition that sst is subject for compaction if
480480 // it was built before full compaction was started
0 commit comments