main: don't break graceful shutdown on init script exit
Graceful shutdown is done in a special fiber which is started for example on SIGTERM. So it can run concurrently with fiber executing Tarantool init script. On init fiber exit we break event loop to pass control back to the Tarantool initialization code. But we fail to run event loop a bit more to finish graceful shutdown. The test is a bit contrived. A more real world case is when Tarantool is termintated during lingering box.cfg(). Close #9411 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9411-fix-graceful-shutdown-break-on-script-exit.md 3 additions, 0 deletions...sed/gh-9411-fix-graceful-shutdown-break-on-script-exit.md
- src/main.cc 8 additions, 6 deletionssrc/main.cc
- test/app-luatest/gh_9411_fix_graceful_shutdown_break_on_script_exit_test.lua 42 additions, 0 deletions..._9411_fix_graceful_shutdown_break_on_script_exit_test.lua
Loading
Please register or sign in to comment