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

Separately shut down the JSON-RPC subsystem in a DB transaction #1755

Merged
merged 2 commits into from
Jul 26, 2018

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Jul 25, 2018

This is the cause for #1737: some destructors need to be run in a DB transaction.

Fixes #1737

@cdecker cdecker self-assigned this Jul 25, 2018
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 aa9cb51

@rustyrussell
Copy link
Contributor

That Travis failure may be fixed by #1756 ...

This reproduces the issue described in issue ElementsProject#1737 and will be fixed by the next
commit.
This needs to be done separately from the rest of the daemon since we can
otherwise not make sure that it happens before the DB is freed and we might
still need the DN, and be running in a DB transaction, for some destructors to
run.
@cdecker cdecker merged commit d6048de into ElementsProject:master Jul 26, 2018
@cdecker
Copy link
Member Author

cdecker commented Jul 26, 2018

Rebased on top of #1756, and it worked, thanks @rustyrussell

SimonVrouwe added a commit to SimonVrouwe/lightning that referenced this pull request Sep 17, 2021
so the ones that registered db_write hook are kept alive
until after the last db transaction

issue ElementsProject#4785

TODO:
- maybe revert PR ElementsProject#3867, i.e. remove obsolete db wrapper arround freeing jsonrpc
    the wrapper was added in PR ElementsProject#1755, but since PR ElementsProject#3867 nothing touches
    the db at this point?
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.

None yet

2 participants