-
Notifications
You must be signed in to change notification settings - Fork 865
Cleaner node shutdown logic #584
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
base: optimism
Are you sure you want to change the base?
Cleaner node shutdown logic #584
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.
Overall looks good but I think we should avoid adding channels if we don't have to, it adds an extra layer of management to a codebase littered with many haphazard channels. And, as you know, poorly managed channels lead to deadlocks.
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.
Looks fine, overall, you should go ahead and move it to review by the optimism team to see what they think makes sense.
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 seems like a general improvement of go-ethereum and not related to the OP Stack diff. Would be great if you could open this PR upstream and it will then be available in op-geth soon after. If there's resistance from upstream maintainers, we can take a closer look. Feel also free to refer back to this PR.
|
Implement functionality to
Tests
Testing was done on a local WS by launching op-geth, hitting /readyz on RPC port with fortio, interrupting op-geth with Ctrl-C and watching for readyz probe to fail while op-geth is waiting for 7 seconds before shutting down the server.
fortio load -c 1 -qps 1 -allow-initial-errors -n 10000 http://127.0.0.1:8551/readyz
op-geth output:
Additional context
Metadata