tarantool/queue

Failure when trying to use the tube after switching back to the master

LeonidVas opened this issue · 0 comments

When using the queue in the replica set, when switching from master to replica and then back again, the module does not allow to work with tubes created on the replica.

The initial settings are taken from here.

master:

box.cfg({read_only = true})

replica:

box.cfg({read_only = false})
queue.create_tube('tube', 'fifo')
box.cfg({read_only = true})

master:

box.cfg({read_only = false})

and now we trying to use the `tube'.

tarantool> queue.tube.tube:put("a1")
---
- error: '[string "return queue.tube.tube:put("a1")"]:1: attempt to index field ''tube''
    (a nil value)'
...