Skip to content
Snippets Groups Projects
  • Astronomax's avatar
    307f3c5b
    box: add "leader_name" field to the box.info.election · 307f3c5b
    Astronomax authored
    Prior to this patch, the table had no information about the leader
    other than his id in the "leader" field. It may not be convenient for
    the user to search for a name corresponding to a given id. Much more
    convenient to see the leader's name in box.info.election.
    
    Closes #8931
    
    @TarantoolBot document
    Title: Document `box.info.election`
    
    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:
    
    ```console
    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/
    307f3c5b
    History
    box: add "leader_name" field to the box.info.election
    Astronomax authored
    Prior to this patch, the table had no information about the leader
    other than his id in the "leader" field. It may not be convenient for
    the user to search for a name corresponding to a given id. Much more
    convenient to see the leader's name in box.info.election.
    
    Closes #8931
    
    @TarantoolBot document
    Title: Document `box.info.election`
    
    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:
    
    ```console
    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/
gh-8931-box-info-election-leader-name.md 82 B

feature/box

  • Added the leader_name field to box.info.election (gh-8931).