info: rename box.info.cluster -> replicaset
It was named 'cluster', but really was just about the replicaset. This is going to be even more confusing soon, because there will be introduced an actual concept of cluster as multiple replicasets. The patch renames it to 'replicaset'. `box.info.cluster` now means the whole cluster and is empty so far. Next patches will add here the cluster name. Part of #5029 @TarantoolBot document Title: `box.info.cluster` is renamed to `box.info.replicaset` Done since 3.0.0. The old behaviour can be reverted back via the `compat` option `box_info_cluster_meaning`. `box.info.cluster` key is still here, but now means a totally different thing - the entire cluster with all its replicasets. <h2>Compat documentation</h2> `box.info.cluster` default meaning is the whole cluster with all its replicasets. To get info about only the current replicaset `box.info.replicaset` should be used. In old versions (< 3.0.0) `box.info.cluster` meant the current replicaset and `box.info.replicaset` didn't exist. <h3>Old and new behaviour</h3> New behaviour: ``` tarantool> box.info.cluster --- - <some cluster keys> ... tarantool> box.info.replicaset --- - uuid: <replicaset uuid> - <... other attributes of the replicaset> ... ``` Old behaviour: ``` tarantool> box.info.cluster --- - uuid: <replicaset uuid> - <... other attributes of the replicaset> ... tarantool> box.info.replicaset (= nil on < 3.0.0) --- - uuid: <replicaset uuid> - <... other attributes of the replicaset> ... ``` <h3>Known compatibility issues</h3> VShard versions < 0.1.24 do not support the new behaviour. <h3>Detecting issues in you codebase</h3> Look for all usages of `box.info.cluster`, `info.cluster`, and even just `.cluster`, `['cluster']`, `["cluster"]`. For the new behaviour to work all of them have to use 'replicaset' key.
Showing
- changelogs/unreleased/info-cluster-rename.md 6 additions, 0 deletionschangelogs/unreleased/info-cluster-rename.md
- src/box/lua/feedback_daemon.lua 1 addition, 1 deletionsrc/box/lua/feedback_daemon.lua
- src/box/lua/info.c 23 additions, 1 deletionsrc/box/lua/info.c
- src/box/lua/load_cfg.lua 1 addition, 1 deletionsrc/box/lua/load_cfg.lua
- src/lua/compat.lua 13 additions, 0 deletionssrc/lua/compat.lua
- test/app-tap/gh-5632-6050-6259-gc-buf-reuse.test.lua 2 additions, 2 deletionstest/app-tap/gh-5632-6050-6259-gc-buf-reuse.test.lua
- test/box-luatest/downgrade_test.lua 1 addition, 1 deletiontest/box-luatest/downgrade_test.lua
- test/box-luatest/schema_sys_space_test.lua 2 additions, 2 deletionstest/box-luatest/schema_sys_space_test.lua
- test/box-luatest/upgrade_to_3_0_0_test.lua 1 addition, 1 deletiontest/box-luatest/upgrade_to_3_0_0_test.lua
- test/box-tap/cfg.test.lua 1 addition, 1 deletiontest/box-tap/cfg.test.lua
- test/box/cfg.result 1 addition, 1 deletiontest/box/cfg.result
- test/box/cfg.test.lua 1 addition, 1 deletiontest/box/cfg.test.lua
- test/box/info.result 37 additions, 1 deletiontest/box/info.result
- test/box/info.test.lua 15 additions, 1 deletiontest/box/info.test.lua
- test/replication-luatest/bootstrap_strategy_test.lua 2 additions, 2 deletionstest/replication-luatest/bootstrap_strategy_test.lua
Loading
Please register or sign in to comment