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

store: Treat 'no connection to the server' as db not available #4435

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Mar 8, 2023

So far we treated the Postgres error "no connection to the server" as not indicating that the database was not available. It's a little murky what exactly that error indicates, but it seems to indicate that an existing connection got killed, e.g., because the database crashed.

We now treat this as an indication that the database is not available, which will trigger the right action further up in the stack. For example, on indexing, db operations will be retried instead of causing the subgraph to fail. Queries will be aborted with an error message.

So far we treated the Postgres error "no connection to the server" as not
indicating that the database was not available. It's a little murky what
exactly that error indicates, but it seems to indicate that an existing
connection got killed, e.g., because the database crashed.

We now treat this as an indication that the database is not available,
which will trigger the right action further up in the stack. For example,
on indexing, db operations will be retried instead of causing the subgraph
to fail. Queries will be aborted with an error message.
@lutter lutter merged commit 82587bd into master Mar 13, 2023
@lutter lutter deleted the lutter/conn-err branch March 13, 2023 22:52
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.

2 participants