-
Notifications
You must be signed in to change notification settings - Fork 126
Description
Surfpool (installed via Homebrew on MacOS Sequoia) is used as a local RPC to run local tests, but it's not possible to stop it either via SIGTERM or exit RPC request after the tests are done.
$ surfpool --version
surfpool 1.0.0
This is how Surfpool is started before the tests (running with no parameters doesn't make a difference, though):
surfpool start --no-tui --no-studio --disable-instruction-profiling --log-path ".surfpool/logs"
Attempting to stop it using SIGTERM doesn't seem to have any effect. (When running with TUI on, esc key stops it successfully, but TUI mode can't be used in this case.)
RPC request used to stop Surfpool after the tests are done:
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"exit"}'
Exit request response:
{"jsonrpc":"2.0","result":null,"id":1}
After this, Surfpool still keeps running and returning ok for getHealth, SIGKILL needs to be used to stop it.
When some RPC requests are attempted after the exit RPC request has been executed, Surfpool starts returning RPC response error -32005: Node is unhealthy;, so the request does have some effect, but doesn't stop the process.