Docs feedback: gitlab:background_migrations:finalize[BackfillMergeRequestDiffsProjectId
document suggests that below command. could be used to complete the jobs stuck in finalizing stage but this command really does not do anything.
sudo -u git -H bundle exec rake "gitlab:background_migrations:finalize[BackfillMergeRequestDiffsProjectId,'merge_request_diffs','id',[]]" --trace RAILS_ENV=production
I have an ongoing issue where some of the background migration jobs are stuck in finalizing stage (version 16.7.7) and now I am unable to upgrade as some of the rows in table merge_request_diffs. are NULL (which has NOT_NULL constraint) on it.
Any suggestion on how to complete these stuck jobs?