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

Restart the event monitor event loop to reinitialize the subscriptions Stream after a restart #1027

Merged
merged 4 commits into from
Jun 2, 2021

Conversation

romac
Copy link
Member

@romac romac commented Jun 1, 2021

Closes: #1026

Description

Restart the event monitor event loop to reinitialize the subscriptions Stream after a restart.


For contributor use:

  • Updated the Unreleased section of CHANGELOG.md with the issue.
  • If applicable: Unit tests written, added test to CI.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments.
  • Re-reviewed Files changed in the Github PR explorer.

@romac romac marked this pull request as draft June 1, 2021 17:11
@romac romac force-pushed the romac/fix-monitor-restart branch from 509124e to 64e2a72 Compare June 1, 2021 19:22
@romac romac marked this pull request as ready for review June 1, 2021 19:22
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.

Tested with both gm and then with dev-env. Looks good, thank you Romain!

@adizere
Copy link
Member

adizere commented Jun 2, 2021

Should we update the changelog also?

Copy link
Collaborator

@ancazamfir ancazamfir left a comment

Choose a reason for hiding this comment

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

Looks good! There is more work to do to properly handle disconnect/ reconnect, see #1026 (comment). But definitely in separate issues and PRs. Thanks Romain!

@ancazamfir ancazamfir merged commit a1b40ae into master Jun 2, 2021
@ancazamfir ancazamfir deleted the romac/fix-monitor-restart branch June 2, 2021 10:03
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…s `Stream` after a restart (informalsystems#1027)

* Add chain id to tracing messages in event monitor

* Restart the event loop after restarting the WebSocket client

* Restart the event loop in a stack-safe fashion

* Remove trampoline, and just use `return` instead
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.

Regression bug: Hermes is unable to re-establish monitor connection after node goes down
3 participants