Hello @Th3Ph4nt0m , in my case, I cannot get rid of all errors.
I realized that all errors shown when migrating are the same:
Expected batched background migration for the given configuration to be marked as 'finished', but it is 'finalizing': {:job_class_name=>"CopyColumnUsingBackgroundMigrationJob", :table_name=>"ci_builds", :column_name=>"id", :job_arguments=>[["id", "stage_id"], ["id_convert_to_bigint", "stage_id_convert_to_bigint"]]}
Finalize it manualy by running
sudo gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,ci_builds,id,'[["id"\,"stage_id"]\,["id_convert_to_bigint"\,"stage_id_convert_to_bigint"]]']
When I ran
gitlab-rake gitlab:background_migrations:finalize[CopyColumnUsingBackgroundMigrationJob,ci_builds,id,'[["id"\,"stage_id"]\,["id_convert_to_bigint"\,"stage_id_convert_to_bigint"]]']
I got this error several times:
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "batched_background_migration_job_transition_logs" does not exist
LINE 8: WHERE a.attrelid = '"batched_background_migration_job_trans...
This error is different from the post in the link, and every time I try to finalize, the same error exists.
I have found this document telling about the same error as me, but he was upgrading from 14.0.12 as in the link in your post and told that he downgraded and upgraded again.
Other post tells this:
You can apply db migration VERSION with 20211123135255
to create table batched_background_migration_job_transition_logs
,if the BatchedBackgroundMigrationJobs
task performed by GitLab itself, it seems that there is no need to write this table, but manual perform is needed. so do following:
I am wondering if it is safe if I do that too.
By the way, which is the migration file?
Regards
Jaime