Skip to content

Commit c6c0670

Browse files
authored
Merge 54d4fd6 into 85e2185
2 parents 85e2185 + 54d4fd6 commit c6c0670

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ydb/core/blobstorage/vdisk/hullop/blobstorage_hull.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@ namespace NKikimr {
413413
if (!CheckGC(ctx, record))
414414
return {NKikimrProto::ERROR, 0, false}; // record has duplicates
415415

416+
if (!collect && !record.KeepSize() && !record.DoNotKeepSize()) {
417+
LOG_ERROR_S(ctx, NKikimrServices::BS_HULLRECS, HullDs->HullCtx->VCtx->VDiskLogPrefix
418+
<< "Db# Barriers ValidateGCCmd: empty garbage collection command"
419+
<< " TabletId# " << tabletID);
420+
return {NKikimrProto::ERROR, "empty garbage collection command"};
421+
}
422+
416423
auto blockStatus = THullDbRecovery::IsBlocked(record);
417424
switch (blockStatus.Status) {
418425
case TBlocksCache::EStatus::OK:

0 commit comments

Comments
 (0)