config: allow empty configuration file
Before this patch, Tarantool, when started with empty configuration file, used to fail with a non verbose error: ``` $ ./src/tarantool -n instance-001 -c single.yaml LuajitError: [cluster_config] Unexpected data type for a record: "nil" fatal error, exiting the event loop ``` Now Tarantool instance can be set up with configuration from remote configuration sources available in Tarantool Enterprise Edition and run with empty config file. When there is no configuration provided for the instance an according error is thrown. Closes #9845 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9845-nil-error-on-empty-config.md 5 additions, 0 deletionschangelogs/unreleased/gh-9845-nil-error-on-empty-config.md
- src/box/lua/config/source/file.lua 6 additions, 0 deletionssrc/box/lua/config/source/file.lua
- test/config-luatest/sources_test.lua 21 additions, 0 deletionstest/config-luatest/sources_test.lua
Loading
Please register or sign in to comment