Repository navigation
fix: wait for tenant migrations before creating postgres changes subscriptions - #2458
Merged
Merged
Conversation
leandrocp
commented
Oct 29, 2026
leandrocp
force-pushed
the
feat/wait-migrations-before-pg-changes
branch
from
October 29, 2026 14:18
9d222c7 to
e2aad2c
Compare
Contributor
CRAP Score Report |
edgurgel
reviewed
Oct 29, 2026
edgurgel
reviewed
Oct 29, 2026
edgurgel
reviewed
Oct 30, 2026
edgurgel
reviewed
Oct 30, 2026
edgurgel
reviewed
Oct 30, 2026
Member
Author
|
@edgurgel thanks for the review, I simplified the whole thing based on your feedback. |
edgurgel
reviewed
Nov 3, 2026
edgurgel
approved these changes
Nov 3, 2026
edgurgel
left a comment
Member
There was a problem hiding this comment.
Added a few comments but other than those LGTM
leandrocp
force-pushed
the
feat/wait-migrations-before-pg-changes
branch
from
November 3, 2026 15:33
cbc7084 to
7758556
Compare
This comment has been minimized.
This comment has been minimized.
leandrocp
force-pushed
the
feat/wait-migrations-before-pg-changes
branch
2 times, most recently
from
November 3, 2026 17:55
d69a5f5 to
2a34ba5
Compare
edgurgel
reviewed
Nov 3, 2026
edgurgel
reviewed
Nov 3, 2026
edgurgel
reviewed
Nov 3, 2026
leandrocp
force-pushed
the
feat/wait-migrations-before-pg-changes
branch
from
November 4, 2026 14:50
2a34ba5 to
46b9cae
Compare
|
🎉 This PR is included in version 2.153.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Postgres Changes could subscribe before Connect ran the tenant's migrations, so new code hit the old schema (
42883errors from #2097 on staging).Connect now reports
migrations_ranin its syn metadata, andSubscriptionManagerwaits for it before publishing itself. Until then channels get{:error, :wait}and retry as they already do. Best effort: after 2s or if Connect goes down, it logsTenantMigrationsNotReadyand publishes anyway.Subscriptions.create, instead of one per channel. Channels never block.