tarantool / vshard

The new generation of sharding based on virtual buckets
Other
99 stars 30 forks source link

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

Closed Serpentian closed 8 months ago

Serpentian commented 11 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