Skip to content

fix(hub): migrate holds a session-level advisory lock, not a transaction (CL-9618) - #1043

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9618-migrate-session-lock
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9618-migrate-session-lock

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Boot migrations now take a session-level pg_advisory_lock on a dedicated single connection and release it in a finally, instead of wrapping the work in a transaction.
The open transaction pinned one pooled connection while other connections did the work, which deadlocks against a single-backend database such as pglite-socket.
Concurrent boots still serialize on the same lock key.

Resolves CL-9618

@linear-code

linear-code Bot commented Sep 30, 2026

Copy link
Copy Markdown

CL-9618

@TheGreatAxios
TheGreatAxios merged commit a1afefa into main Sep 30, 2026
3 checks passed
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