Prabakaran Murugesan activity https://gitlab.com/praba.m7n 2026-03-18T16:26:47Z tag:gitlab.com,2026-03-18:5217211971 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T12:06:06Z praba.m7n Prabakaran Murugesan

!227592 (comment 3170197970) wouldn't have happened, if BBM runner picked this up instead.

tag:gitlab.com,2026-03-18:5217206551 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T12:05:05Z praba.m7n Prabakaran Murugesan

Considering this a non-blocker.

tag:gitlab.com,2026-03-18:5217205403 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T12:04:48Z praba.m7n Prabakaran Murugesan

@krasio - Thanks for the fix! Going ahead since !227592 (comment 3168898482) should not be blocker.

tag:gitlab.com,2026-03-18:5217204141 Prabakaran Murugesan approved merge request !227592: Execute BBM affected by single record table bug at GitLab.org / GitLab 2026-03-18T12:04:29Z praba.m7n Prabakaran Murugesan

What does this MR do and why?

Execute BBM affected by single record table bug

Execute BBMs affected by #590848. This is in addition to !225461 which was not enough as just marked the migrations as paused.

References

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

tag:gitlab.com,2026-03-18:5217197327 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T12:02:53Z praba.m7n Prabakaran Murugesan

Resolving since bringing finalization of the migration with 1 record to forefront should be fine.

Related: !227592 (comment 3170197970)

tag:gitlab.com,2026-03-18:5217152520 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T11:52:11Z praba.m7n Prabakaran Murugesan
WITH migrations AS (
    SELECT *
    FROM batched_background_migrations
    WHERE queued_migration_version BETWEEN '20250905091200' AND '20260216140430'
      AND status = 0  -- paused
)

SELECT m.id, m.job_class_name, m.queued_migration_version
FROM migrations m
LEFT JOIN batched_background_migration_jobs j ON m.id = j.batched_background_migration_id
WHERE j.id IS NULL
  AND (
    (m.min_value IS NOT NULL AND m.min_value = m.max_value)
        OR
    (m.min_cursor IS NOT NULL AND m.min_cursor = m.max_cursor)
    );

---

   id    |                  job_class_name                  | queued_migration_version 
---------+--------------------------------------------------+--------------------------
 2001086 | FixIncompleteInstanceExternalAuditDestinationsV2 | 20251027170720
(1 row)
tag:gitlab.com,2026-03-18:5217095258 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T11:38:18Z praba.m7n Prabakaran Murugesan

Notes:

The Migration got failed in the main database because of 0005-Patch-finalize-BBM-helper.patch.

Surprising that there were a few matching BBMs in Gitlab.com prod.

tag:gitlab.com,2026-03-18:5216919136 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T10:57:27Z praba.m7n Prabakaran Murugesan

thought (non-blocking): Setting the status to active will make those BBMs to get picked up in the next run of BBM workers.

tag:gitlab.com,2026-03-18:5216919121 Prabakaran Murugesan commented on merge request !227592 at GitLab.org / GitLab 2026-03-18T10:57:27Z praba.m7n Prabakaran Murugesan

suggestion: Would be nice to not use send.

      public_send(