@@ -472,7 +472,7 @@ void TExecutor::Active(const TActorContext &ctx) {
472
472
473
473
CompactionLogic = THolder<TCompactionLogic>(new TCompactionLogic (MemTableMemoryConsumersCollection.Get (), Logger.Get (), Broker.Get (), this , loadedState->Comp ,
474
474
Sprintf (" tablet-%" PRIu64, Owner->TabletID ())));
475
- DataCleanupLogic = MakeHolder<TDataCleanupLogic >(static_cast <NActors::IActorOps*>(this ), this , Owner, Logger.Get (), GcLogic.Get ());
475
+ VacuumLogic = MakeHolder<TVacuumLogic >(static_cast <NActors::IActorOps*>(this ), this , Owner, Logger.Get (), GcLogic.Get ());
476
476
LogicRedo->InstallCounters (Counters.Get (), AppTxCounters);
477
477
478
478
ResourceMetrics = MakeHolder<NMetrics::TResourceMetrics>(Owner->TabletID (), 0 , Launcher);
@@ -812,7 +812,7 @@ TExecutorCaches TExecutor::CleanupState() {
812
812
Y_ENSURE (!LogicAlter);
813
813
Y_ENSURE (!CompactionLogic);
814
814
BorrowLogic.Destroy ();
815
- DataCleanupLogic .Destroy ();
815
+ VacuumLogic .Destroy ();
816
816
817
817
return caches;
818
818
}
@@ -996,7 +996,7 @@ void TExecutor::CheckCollectionBarrier(TIntrusivePtr<TBarrier> &barrier) {
996
996
Owner->CompletedLoansChanged (OwnerCtx ());
997
997
}
998
998
}
999
- if (DataCleanupLogic ->NeedGC ()) {
999
+ if (VacuumLogic ->NeedGC ()) {
1000
1000
GcLogic->SendCollectGarbage (ActorContext ());
1001
1001
}
1002
1002
}
@@ -1418,7 +1418,7 @@ void TExecutor::Handle(TEvTablet::TEvGcForStepAckResponse::TPtr &ev) {
1418
1418
return ;
1419
1419
}
1420
1420
1421
- DataCleanupLogic ->OnGcForStepAckResponse (Generation (), ev->Get ()->Step , OwnerCtx ());
1421
+ VacuumLogic ->OnGcForStepAckResponse (Generation (), ev->Get ()->Step , OwnerCtx ());
1422
1422
}
1423
1423
1424
1424
void TExecutor::AdvancePendingPartSwitches () {
@@ -1433,8 +1433,8 @@ void TExecutor::AdvancePendingPartSwitches() {
1433
1433
PlanTransactionActivation ();
1434
1434
MaybeRelaxRejectProbability ();
1435
1435
1436
- // Note: followers don't have DataCleanupLogic
1437
- if (NeedFollowerSnapshot || DataCleanupLogic && DataCleanupLogic ->NeedLogSnaphot ()) {
1436
+ // Note: followers don't have VacuumLogic
1437
+ if (NeedFollowerSnapshot || VacuumLogic && VacuumLogic ->NeedLogSnaphot ()) {
1438
1438
MakeLogSnapshot ();
1439
1439
}
1440
1440
}
@@ -2872,7 +2872,7 @@ void TExecutor::MakeLogSnapshot() {
2872
2872
BorrowLogic->SnapToLog (snap, *commit);
2873
2873
GcLogic->SnapToLog (snap, commit->Step );
2874
2874
LogicSnap->MakeSnap (snap, *commit, Logger.Get ());
2875
- DataCleanupLogic ->OnMakeLogSnapshot (Generation (), commit->Step );
2875
+ VacuumLogic ->OnMakeLogSnapshot (Generation (), commit->Step );
2876
2876
2877
2877
AttachLeaseCommit (commit.Get (), /* force */ true );
2878
2878
CommitManager->Commit (commit);
@@ -3187,8 +3187,8 @@ void TExecutor::Handle(TEvTablet::TEvCommitResult::TPtr &ev, const TActorContext
3187
3187
case ECommit::Snap:
3188
3188
LogicSnap->Confirm (msg->Step );
3189
3189
3190
- DataCleanupLogic ->OnSnapshotCommited (Generation (), step);
3191
- if (NeedFollowerSnapshot || DataCleanupLogic ->NeedLogSnaphot ())
3190
+ VacuumLogic ->OnSnapshotCommited (Generation (), step);
3191
+ if (NeedFollowerSnapshot || VacuumLogic ->NeedLogSnaphot ())
3192
3192
MakeLogSnapshot ();
3193
3193
3194
3194
break ;
@@ -3227,7 +3227,7 @@ void TExecutor::Handle(TEvBlobStorage::TEvCollectGarbageResult::TPtr &ev) {
3227
3227
if (auto retryDelay = GcLogic->OnCollectGarbageResult (ev)) {
3228
3228
Schedule (retryDelay, new TEvPrivate::TEvRetryGcRequest (ev->Get ()->Channel ));
3229
3229
}
3230
- DataCleanupLogic ->OnCollectedGarbage (OwnerCtx ());
3230
+ VacuumLogic ->OnCollectedGarbage (OwnerCtx ());
3231
3231
}
3232
3232
3233
3233
void TExecutor::Handle (TEvPrivate::TEvRetryGcRequest::TPtr &ev, const TActorContext &ctx) {
@@ -3747,7 +3747,7 @@ void TExecutor::Handle(NOps::TEvResult *ops, TProdCompact *msg, bool cancelled)
3747
3747
3748
3748
Y_ENSURE (InFlyCompactionGcBarriers.emplace (commit->Step , ops->Barrier ).second );
3749
3749
3750
- DataCleanupLogic ->OnCompleteCompaction (tableId, CompactionLogic->GetFinishedCompactionInfo (tableId));
3750
+ VacuumLogic ->OnCompleteCompaction (tableId, CompactionLogic->GetFinishedCompactionInfo (tableId));
3751
3751
3752
3752
AttachLeaseCommit (commit.Get ());
3753
3753
CommitManager->Commit (commit);
@@ -3780,7 +3780,7 @@ void TExecutor::Handle(NOps::TEvResult *ops, TProdCompact *msg, bool cancelled)
3780
3780
3781
3781
activeTransaction.Done ();
3782
3782
3783
- if (LogicSnap->MayFlush (false ) || DataCleanupLogic ->NeedLogSnaphot ()) {
3783
+ if (LogicSnap->MayFlush (false ) || VacuumLogic ->NeedLogSnaphot ()) {
3784
3784
MakeLogSnapshot ();
3785
3785
}
3786
3786
}
@@ -4143,14 +4143,14 @@ bool TExecutor::CompactTables() {
4143
4143
}
4144
4144
}
4145
4145
4146
- void TExecutor::CleanupData (ui64 dataCleanupGeneration ) {
4147
- if (DataCleanupLogic-> TryStartCleanup (dataCleanupGeneration , OwnerCtx ())) {
4146
+ void TExecutor::StartVacuum (ui64 vacuumGeneration ) {
4147
+ if (VacuumLogic-> TryStartVacuum (vacuumGeneration , OwnerCtx ())) {
4148
4148
for (const auto & [tableId, _] : Scheme ().Tables ) {
4149
4149
auto compactionId = CompactionLogic->PrepareForceCompaction (tableId);
4150
- DataCleanupLogic ->OnCompactionPrepared (tableId, compactionId);
4150
+ VacuumLogic ->OnCompactionPrepared (tableId, compactionId);
4151
4151
}
4152
- DataCleanupLogic ->WaitCompaction ();
4153
- if (DataCleanupLogic ->NeedLogSnaphot ()) {
4152
+ VacuumLogic ->WaitCompaction ();
4153
+ if (VacuumLogic ->NeedLogSnaphot ()) {
4154
4154
MakeLogSnapshot ();
4155
4155
}
4156
4156
}
0 commit comments