tarantool / vshard

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

vshard/storage/init.lua:528: attempt to index local 'new_tuple' (a nil value) #404

Closed olegrok closed 1 year ago

olegrok commented 1 year ago

Recently I found following error in my logs (in tests).

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

Seems sometimes new_tuple could be null in on_replace trigger for _truncate space.

tarantool> box.schema.space.create('test')
---
- engine: memtx
  before_replace: 'function: 0x0109254708'
  field_count: 0
  is_sync: false
  on_replace: 'function: 0x0109254548'
  temporary: false
  index: []
  is_local: false
  enabled: false
  name: test
  id: 512
- created
...
tarantool> box.space._truncate:select{}
---
- []
...
tarantool> box.space.test:truncate()
---
...
tarantool> box.space._truncate:select{}
---
- - [512, 1]
...
tarantool> box.space.test:drop()
---
...
tarantool> box.space._truncate:select{}
---
- []
...
R-omk commented 1 year ago

duplicate https://github.com/tarantool/vshard/issues/400

olegrok commented 1 year ago

duplicate #400

Oh. Thanks.