tarantool / vshard

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

Truncation of `_bucket` space should be handled #355

Open Gerold103 opened 2 years ago

Gerold103 commented 2 years ago

There is an on-commit trigger in _bucket which updates bucket ref locks, collects unused bucket ref objects. But truncation won't run this trigger. Need to install a trigger on _truncate space which would catch when _bucket is truncated.

Truncation normally doesn't happen. But if it would be done manually by anybody, it might break the storage to some undefined state.