Skip to content

Reschedule MigrateVulnerabilitiesFeedbackToVulnerabilitiesStateTransition background migration

Why are we doing this?

In Projects::VulnerabilityFeedbackController#creat... (#386323 - closed) we discovered that Vulnerabilities::CreateService creates subtransactions. Our MigrateVulnerabilitiesFeedbackToVulnerabilitiesStateTransition background migration leverages that service and it might cause an outage. We must fix the problem and reschedule the migration.

Implementation plan

  1. Create a post-deployment migration that schedules MigrateVulnerabilitiesFeedbackToVulnerabilitiesStateTransition jobs
  2. Create MR or follow-up issue to update documentation to include FF behavior

Monitoring

Progress: Send /chatops run batched_background_migrations status 365 in #production channel on Slack

Errors: https://log.gprd.gitlab.net/goto/424d2240-a0a6-11ed-9f43-e3784d7fe3ca

Sidekiq error: https://log.gprd.gitlab.net/goto/66629f90-a31a-11ed-9f43-e3784d7fe3ca

Edited by Michał Zając