tarantool / vshard

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

`bucket_send()` and `bucket_recv()` should check `rebalancer_transfering_buckets` before touching it #434

Closed Gerold103 closed 8 months ago

Gerold103 commented 10 months ago

bucket_send(bid) sets M.rebalancer_transfering_buckets[bid] = true without checking if it was already true. 1) Need to check it and fail immediately if the bucket is in transfer already. 2) See if the current behaviour can lead to any bugs. Cover them with tests.

Same with bucket_recv().