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

plugin: rescan restarts plugin on update #4609

Merged

Conversation

m-schmoock
Copy link
Collaborator

@m-schmoock m-schmoock commented Jun 17, 2021

This adds a u32 checksum field to the plugin struct that is used
to identify if a plugin is outdated and needs to be restarted on rescan.
Useful for developing and debugging plugins.

Note: only affects non-important plugins.

Changelog-Added: Plugin: Restarts a plugin on rescan when its binary was changed.

@m-schmoock m-schmoock force-pushed the feat/plugin_restart_on_update branch 2 times, most recently from d89b1dd to d40abca Compare June 17, 2021 17:42
@m-schmoock m-schmoock marked this pull request as ready for review June 17, 2021 17:49
@m-schmoock

This comment has been minimized.

@m-schmoock m-schmoock marked this pull request as draft June 17, 2021 18:29
@m-schmoock m-schmoock force-pushed the feat/plugin_restart_on_update branch from d40abca to 0cb7b95 Compare June 17, 2021 21:06
@m-schmoock m-schmoock marked this pull request as ready for review June 17, 2021 22:42
@m-schmoock
Copy link
Collaborator Author

Just a test flake on tests/test_misc.py::test_funding_reorg_private
I don't seem to be able to restart jobs, so meh.

@m-schmoock m-schmoock force-pushed the feat/plugin_restart_on_update branch 2 times, most recently from 0d441bd to 13af6ae Compare June 18, 2021 08:38
This adds a `u32 checksum` field to the plugin struct that is used
to identify if a plugin is outdated and needs to be restarted on `rescan`.

Note: Only affects non-important plugins.

Changelog-Added: Plugin: Restart plugin on `rescan` when binary was changed.
@m-schmoock m-schmoock force-pushed the feat/plugin_restart_on_update branch from 13af6ae to bdcf254 Compare June 18, 2021 08:50
@m-schmoock m-schmoock requested a review from cdecker as a code owner June 18, 2021 10:59
@m-schmoock m-schmoock force-pushed the feat/plugin_restart_on_update branch 2 times, most recently from eaafd6e to 657518b Compare June 18, 2021 13:15
@m-schmoock m-schmoock force-pushed the feat/plugin_restart_on_update branch from 657518b to 1909b1f Compare June 18, 2021 14:12
@m-schmoock
Copy link
Collaborator Author

Okay, same unrelated testflake. Other than that: done.

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 1909b1f

lightningd/plugin.c Show resolved Hide resolved
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 1909b1f

@niftynei niftynei merged commit 896da4f into ElementsProject:master Jul 15, 2021
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.

4 participants