[Bug]: server/v2 Stop()
is not called for all components before process shutdown
#22405
Closed
1 task done
Labels
Is there an existing issue for this?
What happened?
Currently (another bug) Close() is not being called on the RootStore on application exit. I added this patch to
server/v2/store
to address that:but it doesn't seem to run, the
Println
never reached. It looks like since we're waiting for a SIGINT in a background goroutine, and then calling stop from that same thread (see below) that the control thread is exiting before that thread can complete it's work. Control thread should block (not exit) whileStop
completes.cosmos-sdk/server/v2/commands.go
Line 89 in c754b20
Cosmos SDK Version
main
How to reproduce?
Then send a
SIGINT
(^C from terminal) to the process.The text was updated successfully, but these errors were encountered: