tarantool / vshard

The new generation of sharding based on virtual buckets
Other
98 stars 29 forks source link

replicaset: async call yields, when connection is not established #456

Closed Serpentian closed 3 months ago

Serpentian commented 6 months ago

Associated ticket: https://github.com/tarantool/tarantool/issues/9489

Vshard reproducer. Add the following to replicaset-luatest/replicaset_3_test.lua:

test_group.test_connect = function()
    local _, rs = next(vreplicaset.buildall(global_cfg))
    rs.master.conn = nil
    local csw1 = fiber.self():csw()
    rs:connect_replica(rs.master)
    local csw2 = fiber.self():csw()
    -- This fails, csw2 = csw1 + 1
    t.assert_equals(csw1, csw2)
end