-
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
txSyncer: service does not start after node catching up #4768
txSyncer: service does not start after node catching up #4768
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4768 +/- ##
==========================================
- Coverage 54.69% 54.68% -0.02%
==========================================
Files 416 416
Lines 53685 53684 -1
==========================================
- Hits 29364 29358 -6
- Misses 21894 21900 +6
+ Partials 2427 2426 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…er_txsync_restart
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.
same pattern txHandler and txSyncer, eh?
The txHandler and txSync are fixed in separate PRs with separate tests to make sure each one is fixed and tested separately before putting them together. |
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.
Closes #4775
…er_txsync_restart
The txHandler and txSyncer are stopped when catching up from a catchpoint, and started again afterwards.
But they never really restart. 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.
txSync has another control mechanism to wait for before starting the loop, which should also be reset at (re)start.
This PR fixes the txSyncer part of #4775