Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LeonidVas opened this issue Feb 28, 2023 · 0 comments · Fixed by #203
Closed

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

LeonidVas opened this issue Feb 28, 2023 · 0 comments · Fixed by #203
Assignees
Labels
bug Something isn't working

Comments

@LeonidVas
Copy link
Contributor

LeonidVas commented Feb 28, 2023

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)'
...
@LeonidVas LeonidVas added 1sp bug Something isn't working labels Feb 28, 2023
0x501D added a commit that referenced this issue Mar 6, 2023
In replicaset mode, tubes can be created and deleted on different nodes.
Accordingly, it is necessary to rebuild the queue.tube index.

Close #202
0x501D added a commit that referenced this issue Mar 6, 2023
In replicaset mode, tubes can be created and deleted on different nodes.
Accordingly, it is necessary to rebuild the queue.tube index.

Close #202
0x501D added a commit that referenced this issue Mar 7, 2023
In replicaset mode, tubes can be created and deleted on different nodes.
Accordingly, it is necessary to rebuild the queue.tube index.

Closes #202
LeonidVas pushed a commit that referenced this issue Mar 7, 2023
In replicaset mode, tubes can be created and deleted on different nodes.
Accordingly, it is necessary to rebuild the queue.tube index.

Closes #202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants