Cleaner node shutdown logic#584
Cleaner node shutdown logic#584eugene-uniswap wants to merge 5 commits intoethereum-optimism:optimismfrom
Conversation
paranoiacblack
left a comment
There was a problem hiding this comment.
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.
paranoiacblack
left a comment
There was a problem hiding this comment.
Looks fine, overall, you should go ahead and move it to review by the optimism team to see what they think makes sense.
sebastianst
left a comment
There was a problem hiding this comment.
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/readyzop-geth output:
Additional context
Metadata