Vacuum operates purely in-memory. If used with persistent tables, after a crash, on-disk state may have old page layouts while persisted operations may reference new locations which leads to data corruption.
Solution
Persist vacuum operations as atomic "VacuumBatch" using existing batch generation logic:
- Add
VacuumOperation type with old/new links and CDC events
- Modify vacuum to generate CDC events
- Analyzer collects vacuum batch: all ops per link where last op is
Vacuum
- Apply batch atomically to disk
Vacuum operates purely in-memory. If used with persistent tables, after a crash, on-disk state may have old page layouts while persisted operations may reference new locations which leads to data corruption.
Solution
Persist vacuum operations as atomic "VacuumBatch" using existing batch generation logic:
VacuumOperationtype with old/new links and CDC eventsVacuum