Skip to content

Commit

Permalink
Ignore stored GCBarrierPreparation (#7473)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny authored Aug 5, 2024
1 parent 3fb7fa2 commit ccf98e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ydb/core/tx/columnshard/blobs_action/bs/blob_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,14 @@ bool TBlobManager::LoadState(IBlobManagerDb& db, const TTabletId selfTabletId) {
if (!db.LoadLastGcBarrier(LastCollectedGenStep)) {
return false;
}
if (!db.LoadGCBarrierPreparation(GCBarrierPreparation)) {
//https://github.com/ydb-platform/ydb/issues/7468
TGenStep storedGCBarrierPreparation;
if (!db.LoadGCBarrierPreparation(storedGCBarrierPreparation)) {
return false;
}
if (storedGCBarrierPreparation < LastCollectedGenStep) {
AFL_WARN(NKikimrServices::TX_COLUMNSHARD_BLOBS_BS)("mem_genstep", GCBarrierPreparation)("last_genstep", LastCollectedGenStep)("db_genstep", storedGCBarrierPreparation);
}
AFL_VERIFY(!GCBarrierPreparation.Generation() || LastCollectedGenStep <= GCBarrierPreparation)("prepared", GCBarrierPreparation)("last", LastCollectedGenStep);

// Load the keep and delete queues
Expand Down

0 comments on commit ccf98e2

Please sign in to comment.