Closed yorickdowne closed 11 months ago
Thanks for the report @yorickdowne - testing locally with the latest develop
I can see some interesting results. It seems to respond to SIGTERM
and shutdown the p2p processes but other parts don't seem to notice so we may be missing a context check somewhere like in the derivation driver.
I also got one case where it panicked because of a closed channel which I suspect is a rare race condition:
panic: send on closed channel
goroutine 360 [running]:
github.com/ethereum-optimism/optimism/op-node/p2p.(*NodeP2P).DiscoveryProcess.func5()
/Users/aj/Documents/code/optimism/op-node/p2p/discovery.go:333 +0x100
created by github.com/ethereum-optimism/optimism/op-node/p2p.(*NodeP2P).DiscoveryProcess in goroutine 388
/Users/aj/Documents/code/optimism/op-node/p2p/discovery.go:326 +0x54c
Will have to do some more digging.
Describe the bug
The op-node process does not shut down when sent a
SIGINT
orSIGTERM
. It does shut down immediately when set aSIGHUP
.To Reproduce
exec
)kill -s SIGTERM pid-of-op-node
No shutdownkill -s SIGINT pid-of-op-node
No shutdownkill -s SIGHUP pid-of-op-node
Immediate shutdownExpected behavior
op-node shuts down on
SIGINT
andSIGTERM
System Specs:
v0.0.0-74ff044a-1699318761