config: validate instance/replicaset/group names
Recently added persistent instance/replicaset/cluster names have certain validation rules (see #5029 and #9148). An instance name and a replicaset name that are provided in a declarative configuration are stored in the database, so they should follow the same rules. This patch implements the validation for instance/replicaset/group names, for `--name` CLI option and `TT_INSTANCE_NAME` environment variable. Part of #8862 Related to #9148 NO_DOC=The user visible change is about a better error message if a wrong name is passed. The naming rules are documented in https://github.com/tarantool/doc/issues/3466, https://github.com/tarantool/doc/issues/3467, https://github.com/tarantool/doc/issues/3468.
Showing
- changelogs/unreleased/config-validate-names.md 5 additions, 0 deletionschangelogs/unreleased/config-validate-names.md
- src/box/lua/config/cluster_config.lua 39 additions, 3 deletionssrc/box/lua/config/cluster_config.lua
- src/box/lua/config/init.lua 6 additions, 0 deletionssrc/box/lua/config/init.lua
- test/config-luatest/cli_test.lua 107 additions, 0 deletionstest/config-luatest/cli_test.lua
- test/config-luatest/cluster_config_schema_test.lua 112 additions, 0 deletionstest/config-luatest/cluster_config_schema_test.lua
Loading
Please register or sign in to comment