Hashed Storage: Prevent a migration and rollback running at the same time
requested to merge 58739-hashed-storage-prevent-a-migration-and-rollback-running-at-the-same-time into master
What does this MR do?
Prevents a migration or rollback to be scheduled if the opposite operation is already scheduled.
See example below:
$ rake gitlab:storage:migrate_to_hashed
Enqueuing migration of 10 projects in batches of 200. Done!
$ rake gitlab:storage:rollback_to_legacy
There is already a migration operation in progress, running a rollback at the same time may have unexpected consequences.
What are the relevant issue numbers?
Closes #58739 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer
Edited by Gabriel Mazetto