Skip to content

feedback: box.info.synchro | Tarantool #4400

@TarantoolBot

Description

@TarantoolBot

<…>ng in the queue.
The following information is provided:

queue:
|owner (since version 2.10.0) – ID of the replica that owns the synchronous
transaction queue. Once an owner instance appears, all other instances become read-only.
If the owner field is 0, then every instance may be writable,
but they can’t create any synchronous transactions.
To claim or reclaim the queue, use box.ctl.promote() on the instance that you want
to promote.
With elections enabled, an instance runs box.ctl.promote() command automatically after winning the elections.
To clear the ownership, call box.ctl.demote() on the synchronous queue owner|.

term (since version 2.10.0) – current queue term.
It contains <…>

https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/synchro/

Please mention that when Raft election is enabled election_mode = 'candidate', the new Raft leader claims the queue automatically, and thus box.info.synchro.queue.owner == box.info.election.leader.

When Raft is in play, no manual intervention with box.ctl.promote() or box.ctl.demote() is required.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions