tarantool / vshard

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

Bucket ref protection on replicas - part 2 - recovery makes SENT buckets, GC tests to luatest #348

Closed Gerold103 closed 2 years ago

Gerold103 commented 2 years ago

The patchset is a next step on the way of fixing the buckets being deleted on master while still having RO refs on replicas.

Firstly, it makes bucket recovery turn SENDING buckets to SENT in case the transfer was successful. That is done because GARBAGE and SENT statuses will have more difference in the future.

Secondly, the bucket garbage tests are ported to luatest in order to change and extend them later.

Thirdly, it fixes wrong usage of index:min() at 1.10. It exploded on the last commit when min(key) returned something > key.

173