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

Disable config reload and throw a warning on receiving SIGHUP #1894

Merged
merged 4 commits into from
Feb 18, 2022

Conversation

seanchen1991
Copy link
Contributor

@seanchen1991 seanchen1991 commented Feb 18, 2022

Closes: #1885

Description

Disables configuration reloading upon receiving a SIGHUP signal and throws a warning notifying the user of this fact and that the feature will be deprecated in the future.

When a SIGHUP signal is sent to Hermes, the logs now look like this

2022-02-18T16:04:12.715032Z  INFO ThreadId(01) Hermes has started
2022-02-18T16:04:24.764642Z  WARN ThreadId(25) configuration reloading via SIGHUP has been disabled and will be deprecated in the future

PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

Copy link
Member

@adizere adizere left a comment

Choose a reason for hiding this comment

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

Pre-approving, thanks for the quick fix Sean!

Will let @romac have also a look since he knows the reloading module best.

relayer-cli/src/commands/start.rs Outdated Show resolved Hide resolved
@romac
Copy link
Member

romac commented Feb 18, 2022

LGTM modulo a nitpick. I'll take care of removing the config reload code in a follow-up PR.

relayer-cli/src/commands/start.rs Outdated Show resolved Hide resolved
@romac romac merged commit 9cd27c3 into informalsystems:master Feb 18, 2022
@romac romac mentioned this pull request Mar 15, 2022
6 tasks
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…alsystems#1894)

* Disable config reload and throw a warning on receiving SIGHUP

* Change from `info` to `warning` level and add changelog entry

* Remove `ConfigReload` param from `register_signals`

* Update relayer-cli/src/commands/start.rs

Co-authored-by: Romain Ruetschi <[email protected]>
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.

Config reload results in panic
3 participants