tarantool / vshard

The new generation of sharding based on virtual buckets
Other
100 stars 31 forks source link

test: fix flaky failover/failover.test.lua #469

Closed Serpentian closed 8 months ago

Serpentian commented 8 months ago

Router pings replicas and if they cannot respond in failover_ping_timeout, it detaches connection from this replica. The test checks, that connection is not closed, when long response is done, even if failover_ping_timeout is small.

However, when the connection is detached, it can be garbage collected, which leads to 'Connection closed' error. Let's stop Lua GC for the connection by creating reference to it.

Related to https://github.com/tarantool/tarantool/issues/9629

NO_DOC=test