Skip to content

Ensure database is open before heartbeat response#14

Merged
stgraber merged 1 commit into
canonical:mainfrom
masnax:db-open-check
Aug 25, 2022
Merged

Ensure database is open before heartbeat response#14
stgraber merged 1 commit into
canonical:mainfrom
masnax:db-open-check

Conversation

@masnax
Copy link
Copy Markdown
Contributor

@masnax masnax commented Aug 24, 2022

I wasn't able to replicate the panic, but it seems to be coming from the sql.DB type, so this adds a check to ensure the database is actually open before attempting to respond to a heartbeat.

I'm starting a cluster like this, and did not run into this issue.

https://paste.ubuntu.com/p/fs5nDGs2rs/

…rtbeat response

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
@stgraber stgraber merged commit 77c7f24 into canonical:main Aug 25, 2022
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