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

Handle removed backend #789

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Handle removed backend #789

merged 3 commits into from
Jul 22, 2024

Conversation

paulgb
Copy link
Member

@paulgb paulgb commented Jul 20, 2024

When a keepalive request fails because the backend has been removed, we should tell the proxy that the backend has been removed.

Fixes DIS-2106

Copy link

vercel bot commented Jul 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 6:00pm

tracing::error!(?err, ?backend_id, "Error updating keepalive");
tracing::error!(?err, ?backend_id, ?node_id, "Error updating keepalive");

socket
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should only send this if the error is sqlx::Error::RowNotFound?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Updated.

@paulgb paulgb merged commit b1a6a98 into main Jul 22, 2024
6 checks passed
@paulgb paulgb deleted the paulgb/handle-removed-backend branch July 22, 2024 19:43
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