The RW node always initialized with in_replicaset=false
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 244
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Queue initialization looks like this:
local queue=require'queue'
queue.cfg({in_replicaset=true})
It seems that this queue will always be not temporary (in_replicaset=true)... but it's not true.
The require'queue call generates an internal queue_init() call, which in turn leads to switch_in_replicaset.
since we can't configure in_replicaset at the require stage, we have a switch going on.
As part of the switch, a temporary space is created and migration is started.
This happens every time on the require'queue'
In our case, this leads to the creation of a space and formatting of the schema, which blocks migration from 2.10.8 to 3.2.1 due to modification of the system space.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the require'queue' initialization through queue_init() and switch_in_replicaset, then inspect how queue.cfg({in_replicaset=true}) interacts with temporary space creation and migration. Done means requiring the queue does not format or modify a system space before the configuration is applied, and migration from 2.10.8 to 3.2.1 is no longer blocked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100