tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
237 stars 52 forks source link

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

Closed LeonidVas closed 1 year ago

LeonidVas commented 1 year ago

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)'
...