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

Make db errors fatal in channels #1764

Merged
merged 1 commit into from
Apr 13, 2021
Merged

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Apr 13, 2021

We don't want a database error to cause force close of channels.
Database errors are more likely to happen when using Postgres, but can
also happen with Sqlite in case of e.g. full disk.

Since we always write to disk before sending messages, we should be able
to recover gracefully after the db issue is fixed and eclair is
restarted.

We don't want a database error to cause force close of channels.
Database errors are more likely to happen when using Postgres, but can
also happen with Sqlite in case of e.g. full disk.

Since we always write to disk before sending messages, we should be able
to recover gracefully after the db issue is fixed and eclair is
restarted.
@pm47 pm47 requested a review from t-bast April 13, 2021 15:20
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

We need to have a way to detect that the node stopped (I'm not sure we currently do).
Perhaps we can define an alert on Kamon based on the absence of data (which indicates the node stopped)?

@pm47 pm47 merged commit 205653d into master Apr 13, 2021
@pm47 pm47 deleted the db-update-channel-fatal-error branch April 13, 2021 16:11
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