Public bug reported:

1. Create a space

localhost> space = box.schema.create_space('tweedledum', { id = 0 })
---
...
localhost> space:create_index('primary', 'hash', { parts = { 0, 'num' }})
---
...
localhost> box.space[0].index[0].iterator
---
- 'function: 0x409c9940'
...

2. Restart Tarantool to recovery from xlogs

localhost> box.space[0].index[0].iterator
failed to send admin query
reconnected
---
- 'function: 0x41601f20' <!-- Works properly
...


3. Save a snapshot
localhost> box.snapshot()
---
- ok
...

4. Restart Tarantool to recovery from the snapshot
localhost> box.space[0].index[0].iterator
failed to send admin query
reconnected
---
- null <!-- Metatable is not set
...

** Affects: tarantool
     Importance: Undecided
     Assignee: Kostja Osipov (kostja)
         Status: New

** Changed in: tarantool
    Milestone: None => 1.6.1

-- 
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1229709

Title:
  box.schema.space.bless is not called when recovering from snapshot

Status in Tarantool - an efficient in-memory data store:
  New

Bug description:
  1. Create a space

  localhost> space = box.schema.create_space('tweedledum', { id = 0 })
  ---
  ...
  localhost> space:create_index('primary', 'hash', { parts = { 0, 'num' }})
  ---
  ...
  localhost> box.space[0].index[0].iterator
  ---
  - 'function: 0x409c9940'
  ...

  2. Restart Tarantool to recovery from xlogs

  localhost> box.space[0].index[0].iterator
  failed to send admin query
  reconnected
  ---
  - 'function: 0x41601f20' <!-- Works properly
  ...

  
  3. Save a snapshot
  localhost> box.snapshot()
  ---
  - ok
  ...

  4. Restart Tarantool to recovery from the snapshot
  localhost> box.space[0].index[0].iterator
  failed to send admin query
  reconnected
  ---
  - null <!-- Metatable is not set
  ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1229709/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to