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

Change sqlite3_busy_timeout to 60 seconds, add warnings re: litestream. #4867

Merged
merged 2 commits into from
Oct 17, 2021

Conversation

ZmnSCPxj
Copy link
Collaborator

Fixes: #4860

Fixes: #4857 if @x3nb63 can confirm

We need to specify versions in BACKUP.md since it is published on https://lightning.readthedocs.io/BACKUP.html and users might assume the recommendation applies to all versions; litestream will reliably work after 5bf2b5c and on reasonably fast media/low-load conditions.

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

LGTM, I have only a small question, because I'm missing some things.

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Oh, I got it. my fault sorry.

ack 6cb6e5a

@rustyrussell
Copy link
Contributor

Let's just increase the default to 30 or 60 seconds. I mean, we could do better, but the user surely prefers a delay to a crash!

Providing knobs like this is a last resort, IMHO.

@rustyrussell rustyrussell added this to the v0.10.2 milestone Oct 16, 2021
Closes: ElementsProject#4860

ChangeLog-Added: With `sqlite3` db backend we now use a 60-second busy timer, to allow backup processes like `litestream` to operate safely.
@ZmnSCPxj
Copy link
Collaborator Author

Use 60-second timeout without exposing new option to user, updated BACKUP.md appropriately.

@ZmnSCPxj ZmnSCPxj changed the title Add --sqlite3-busy-timeout option, add warnings re: litestream. Change sqlite3_busy_timeout to 60 seconds, add warnings re: litestream. Oct 16, 2021
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ack 2434e4d

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack 2434e4d

@ZmnSCPxj ZmnSCPxj merged commit 3e902e2 into ElementsProject:master Oct 17, 2021
@ZmnSCPxj ZmnSCPxj deleted the fix-litestream branch October 18, 2021 00: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.

litestream recommendation may lead to crashes? crashes with "database is locked"
3 participants