tarantool / vshard

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

test: fix flaky router/reconnect_to_master #344

Closed Serpentian closed 2 years ago

Serpentian commented 2 years ago

Counting known buckets on router at first time in this test was not stable as sometimes discovery_fiber didn't have time to start discovery process.

Let's start router with disabled discovery, make sure the router doesn't know any buckets, enable discovery mode and wait until it gets all buckets from replica.

Closes #304

Serpentian commented 2 years ago

We can also just delete this line from the test:

https://github.com/tarantool/vshard/blob/969005a5f2946a3eafbe0727c0b46739d0327403/test/router/reconnect_to_master.test.lua#L51