tarantool / tarantool/queue

The RW node always initialized with in_replicaset=false

Open
#251 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.