Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add global stack event registry and block requests before ready #2019

Merged
merged 13 commits into from
Nov 21, 2024

Conversation

msfstef
Copy link
Contributor

@msfstef msfstef commented Nov 21, 2024

PR by @icehaunter and me - makes the StackSupervisor accept a stack event registry that it uses to dispatch status events about the state of the stack.

This was preliminary work for multitenancy, and also fixes #1922 since now we hold connections when the stack is not ready, and release them when we receive a "ready event" or time them out with a 503 - avoids crashing the ETS inspector which was trying to use a DB connection from an uninitialised pool.

Integration test is broken from #2009

Copy link
Contributor

@kevin-dp kevin-dp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, nothing to remark here 🥇

Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit a2597da
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/673f40e541486d000875b53a
😎 Deploy Preview https://deploy-preview-2019--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@msfstef msfstef force-pushed the msfstef/stop-calls-when-stack-not-ready branch from 133afdc to a2597da Compare November 21, 2024 14:17
@msfstef msfstef merged commit c5b79a5 into main Nov 21, 2024
25 of 26 checks passed
@msfstef msfstef deleted the msfstef/stop-calls-when-stack-not-ready branch November 21, 2024 14:20
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.

Don't allow Electric to create shapes if it's not connected to a replication slot
3 participants