-
Notifications
You must be signed in to change notification settings - Fork 474
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
txhandler: service does not restart after node catching up #4809
txhandler: service does not restart after node catching up #4809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a remarkably simple and straightforward fix. most of the work was on the test, eh? LGTM.
Codecov Report
@@ Coverage Diff @@
## master #4809 +/- ##
=======================================
Coverage 54.67% 54.68%
=======================================
Files 414 414
Lines 53550 53550
=======================================
+ Hits 29278 29282 +4
Misses 21842 21842
+ Partials 2430 2426 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix is good, please tweak the test a bit. Is it stable enough?
The txHandler and txSyncer are stopped when catching up from a catchpoint, and started again afterwards.
But they never really start. The main loop of these services rely on a context to stop. That context is canceled when stopping. Then, when the services are started again, the contexts remain canceled, which leads for the service to immediately end.
The fix is to create a new context when starting these services.
This PR fixes the txHandler part of #4775