config: add compat options
Fixes #9497 @TarantoolBot document Title: config: compat options The new section `compat` is added to the declarative configuration. The options are the same as ones provided by the `compat` module. Each can be set to `old` or `new`. Example: ```yaml compat: json_escape_forward_slash: old ``` The list of currently supported options with their defaults: ```yaml compat: json_escape_forward_slash: new yaml_pretty_multiline: new fiber_channel_close_mode: new box_cfg_replication_sync_timeout: new sql_seq_scan_default: new fiber_slice_default: new box_info_cluster_meaning: new binary_data_decoding: new box_tuple_new_vararg: new box_session_push_deprecation: old sql_priv: new c_func_iproto_multireturn: new box_space_execute_priv: new box_tuple_extension: new box_space_max: new ... ``` The `box_cfg_replication_sync_timeout` option is non-dynamic and it can't be changed after a startup. Technically, all the other options could be changed in runtime (by changing the configuration file and calling `config:reload()`), but I would not generally recommend it. At least code that handles `fiber_channel_close_mode` option has the following comment, see commit de9b9308 ("fiber: add channel close mode option to compat"). > The behavior is unspecified for already created channels. > Choose the mode at an early stage of application's > initialization.
Showing
- changelogs/unreleased/config-compat-options.md 3 additions, 0 deletionschangelogs/unreleased/config-compat-options.md
- src/box/CMakeLists.txt 1 addition, 0 deletionssrc/box/CMakeLists.txt
- src/box/lua/config/applier/compat.lua 23 additions, 0 deletionssrc/box/lua/config/applier/compat.lua
- src/box/lua/config/init.lua 6 additions, 4 deletionssrc/box/lua/config/init.lua
- src/box/lua/config/instance_config.lua 93 additions, 0 deletionssrc/box/lua/config/instance_config.lua
- src/box/lua/init.c 5 additions, 0 deletionssrc/box/lua/init.c
- src/lua/compat.lua 6 additions, 0 deletionssrc/lua/compat.lua
- test/config-luatest/cluster_config_schema_test.lua 17 additions, 0 deletionstest/config-luatest/cluster_config_schema_test.lua
- test/config-luatest/compat_test.lua 255 additions, 0 deletionstest/config-luatest/compat_test.lua
Loading
Please register or sign in to comment