Skip to content

Document box.info.election #3680

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
TarantoolBot opened this issue Sep 6, 2023 · 1 comment · Fixed by #3862
Closed

Document box.info.election #3680

TarantoolBot opened this issue Sep 6, 2023 · 1 comment · Fixed by #3862
Assignees
Labels
3.0 feature A new functionality replication [area] Related to Replication

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Sep 6, 2023

Related dev. issue(s): tarantool/tarantool#8931

Product: Tarantool
Since: 3.0
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/election/
SME: @ Astronomax

Details

box.info.election now contains one more field: leader_name: string.
There are several possible values ​​for this field:

  • nil, if there is no leader in a cluster.

  • box.NULL, if there is a leader, but he does not have a name.

  • some string, if there is a leader and he has a name.

Example:

tarantool> box.info.election
---
- leader_idle: 0
  leader_name: node1
  state: leader
  vote: 1
  term: 3
  leader: 1
...

[box-info-election] https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/election/
Requested by @ Astronomax in tarantool/tarantool@307f3c5.

@veod32 veod32 added 3.0 replication [area] Related to Replication feature A new functionality labels Sep 8, 2023
@andreyaksenov andreyaksenov linked a pull request Nov 17, 2023 that will close this issue
@andreyaksenov
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 feature A new functionality replication [area] Related to Replication
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants