luatest icon indicating copy to clipboard operation
luatest copied to clipboard

The problem with multiple replica sets in the group

Open a1div0 opened this issue 5 months ago • 4 comments

The function will not work correctly if there is more than one replica set in the group. My test cluster usually consists of two routers and two to three shards.

https://github.com/tarantool/luatest/blob/b1e3631e32d296fb22a0789a63215a0c6b3b0384/luatest/server.lua#L154

a1div0 avatar Aug 19 '25 14:08 a1div0

The code you linked traverses over the whole groups-replicasets-instances topology and it doesn't assume anything about amount of replicasets in a group or amount of instances in a replicasets. Please, clarify your problem.

Totktonada avatar Aug 19 '25 19:08 Totktonada

Helper will not be able to raise a cluster with such a configuration:

test_config_3x.yml

a1div0 avatar Aug 20 '25 13:08 a1div0

The code you linked traverses over the whole groups-replicasets-instances topology and it doesn't assume anything about amount of replicasets in a group or amount of instances in a replicasets.

This is wrong

a1div0 avatar Aug 20 '25 13:08 a1div0

In the given case the find_advertise_uri function tries to find the router-msk instance in the router-spb replicaset, fails and the No suitable URI to connect is found error is reported.

I ack the problem.

https://github.com/tarantool/luatest/blob/b1e3631e32d296fb22a0789a63215a0c6b3b0384/luatest/server.lua#L152-L157

This break should be continue.

Totktonada avatar Aug 21 '25 12:08 Totktonada