Skip to content

fix(db): advisory lock on migration boot path (ADR-0036)#38

Merged
BigBill1418 merged 1 commit into
mainfrom
fix/migration-advisory-lock
Jul 3, 2026
Merged

fix(db): advisory lock on migration boot path (ADR-0036)#38
BigBill1418 merged 1 commit into
mainfrom
fix/migration-advisory-lock

Conversation

@BigBill1418

Copy link
Copy Markdown
Owner

Wraps run_migrations_sync in a session advisory lock (8675310, distinct from seed's 8675309) across detect->stamp->upgrade, released in finally — closes the concurrent-boot migration race. Plus a revision-id <=32-char fence (v2.75.1 crash-loop invariant). 25 migration/startup tests pass. ADR-0036.

…nce (ADR-0036)

run_migrations_sync now takes pg_advisory_lock(8675310) (distinct from seed's
8675309) across the detect->stamp->upgrade critical section, released in
finally — closes the concurrent-boot migration race (two containers in a
blue-green window). Plus a hermetic revision-id <=32-char fence (the v2.75.1
crash-loop invariant). ADR-0035 was taken by report-quality; renumbered 0036.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BigBill1418 BigBill1418 merged commit 3d35885 into main Jul 3, 2026
1 check failed
@BigBill1418 BigBill1418 deleted the fix/migration-advisory-lock branch July 3, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant