Upgrade to 9.1.0 c3f0f143 from 8.7 merge requests update failure
Summary
Hi, all today we upgraded our git from 8.7 to 9.1.0 c3f0f143 everything seems to be working, except updating merge requests. This results in the following error:
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "merge_request_diffs_merge_request_id" DETAIL: Key (merge_request_id)=(6435) already exists
Steps to reproduce
1: have a working 8.7 docker container. 2: use the upgrade steps as in: https://docs.gitlab.com/omnibus/docker/README.html 3: let the update run, now create e new merge request, and upon update it should put a error in the queue
What is the current bug behavior?
job: UpdateMergeRequestsWorker
error: ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "merge_request_diffs_merge_request_id" DETAIL: Key (merge_request_id)=(6435) already exists
What is the expected correct behavior?
The merge request should have after this 2 commits instead of 1
Output of checks
These all seem fine: gitlab-rake db:migrate:status . -> all up status gitlab-rake gitlab:check . -> all OK status
If there is more info needed, let me know!