Migration helpers to finalize partitioning migration
What does this MR do?
Relates to: #229903 (closed)
Adds a new migration helper to run the post-background migration cleanup for partitioning migrations. This works similarly to any background migration:
- Steal scheduled jobs that have not yet run
- Perform final data cleanup due to jobs that may have dropped/failed
only in a more generic fashion to be used for partitioning any table. Additionally, VACUUM
the partitioned table as discussed here: !35201 (comment 378514772)
The final steps of the migration (actually using the partitioned table) for after this MR are tracked here: #241267 (closed)
Screenshots
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides - [-] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Edited by Mayra Cabrera