tarantool / vshard

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

Error in trigger `bucket_on_truncate_f` #400

Closed d-enk closed 1 year ago

d-enk commented 1 year ago

Error in drop method after truncate

.rocks/share/tarantool/vshard/storage/init.lua:528: attempt to index local 'new_tuple' (a nil value)

Reproduce:


local cfg = {
  bucket_count = 1,
  sharding = {
    ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"] = {
      replicas = {
        ["aaaaaaaa-aaaa-aaaa-aaaa-000000000000"] = {
          uri = "test:@0.0.0.0:3301",
          master = true,
        },
      },
    },
  },
}

require("vshard").storage.cfg(cfg, "aaaaaaaa-aaaa-aaaa-aaaa-000000000000")

local space = box.schema.space.create("SPACE")

space:truncate()
space:drop()

tarantool == 2.10.5-1 vshard == 0.1.22-1