config: start console before first box.cfg() call
This commit changes the order of configuration appliers and move `console` before `box_cfg`. The `console` applier is adjusted to correctly interpret the configured socket file path before the first box.cfg(). The main reason to change the order is to allow a user to call `box.ctl.make_bootstrap_leader()` for a replicaset that starts in the `replication.boostrap_strategy: supervised` mode. Part of #8862 NO_DOC=The documentation already assumes that a control command may be issued on the console. No changes are required.
Showing
- changelogs/unreleased/config-start-console-before-box-cfg.md 5 additions, 0 deletionschangelogs/unreleased/config-start-console-before-box-cfg.md
- src/box/lua/config/applier/console.lua 7 additions, 0 deletionssrc/box/lua/config/applier/console.lua
- src/box/lua/config/init.lua 6 additions, 5 deletionssrc/box/lua/config/init.lua
- test/config-luatest/console_test.lua 136 additions, 0 deletionstest/config-luatest/console_test.lua
- test/config-luatest/supervised_bootstrap_test.lua 75 additions, 0 deletionstest/config-luatest/supervised_bootstrap_test.lua
Loading
Please register or sign in to comment