@@ -94,7 +94,6 @@ namespace NKikimr {
9494 ui64 wId, const TActorContext& ctx, const TActorId& hugeKeeperId, const TActorId& skeletonId,
9595 const TPDiskCtxPtr& pdiskCtx, const TVDiskContextPtr& vctx) {
9696 Y_ABORT_UNLESS (recordLsn > LastDeletionLsn);
97- Y_ABORT_UNLESS (!removedHugeBlobs.Empty ());
9897 LastDeletionLsn = recordLsn;
9998 LOG_DEBUG_S (ctx, NKikimrServices::BS_HULLCOMP, vctx->VDiskLogPrefix
10099 << " TDelayedCompactionDeleter: Update recordLsn# " << recordLsn << " removedHugeBlobs.size# "
@@ -223,8 +222,12 @@ namespace NKikimr {
223222 TReleaseQueueItem& item = ReleaseQueue.front ();
224223 if (CurrentSnapshots.empty () || (item.RecordLsn <= CurrentSnapshots.begin ()->first )) {
225224 // matching record -- commit it to huge hull keeper and throw out of the queue
226- ctx.Send (hugeKeeperId, new TEvHullFreeHugeSlots (std::move (item.RemovedHugeBlobs ),
227- item.RecordLsn , item.Signature , item.WId ));
225+ if (item.WId ) {
226+ ctx.Send (hugeKeeperId, new TEvHullFreeHugeSlots (std::move (item.RemovedHugeBlobs ),
227+ item.RecordLsn , item.Signature , item.WId ));
228+ } else {
229+ Y_ABORT_UNLESS (item.RemovedHugeBlobs .Empty ());
230+ }
228231 if (item.ChunksToForget ) {
229232 LOG_DEBUG (ctx, NKikimrServices::BS_VDISK_CHUNKS, VDISKP (vctx->VDiskLogPrefix ,
230233 " FORGET: PDiskId# %s ChunksToForget# %s" , pdiskCtx->PDiskIdString .data (),
0 commit comments