tarantool / vshard

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

Add bucket generation counter to public info #347

Open R-omk opened 2 years ago

R-omk commented 2 years ago

Whenever a bucket changes its state (comes or leaves) during resharding, increment the counter, this will allow the application layer to determine that the bucket may have been written to on another replicaset, useful for control various caches on lua side.

R-omk commented 2 years ago

Maybe related https://github.com/tarantool/tarantool/issues/6545

R-omk commented 1 year ago

Generations would cause schema change - we need to update _bucket format for it. (https://github.com/tarantool/vshard/issues/372#issuecomment-1311040670)

for purposes for which I would need such functionality, a regular counter in lua memory would be enough (even if they are not persistent), triggers solve this problem. A solution with saving data to space would also solve the issue, but then it need to understand why this can be useful.

Gerold103 commented 1 year ago

Here: https://github.com/tarantool/vshard/issues/214