Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20627

Galera4 not able to report proper wsrep_incoming_addresses

Details

    Description

      Galera4 is not able to report proper address of members from the cluster:

      How to reproduce
      1. Strat maria with galera4:

      mysqld --no-defaults --wsrep_on=ON --wsrep_provider=/usr/lib64/galera-4/libgalera_smm.so --wsrep_sst_method=mariabackup --user=mysql --binlog_format=ROW --wsrep_cluster_address=gcomm:// --wsrep_node_address=10.126.47.243 --bind_address=10.126.47.243
      

      2. Check wsrep_incoming_addresses variable:

      mysql -e "SHOW GLOBAL STATUS LIKE 'wsrep_inc%'"
      

      Result

      +--------------------------+-------+
      | Variable_name            | Value |
      +--------------------------+-------+
      | wsrep_incoming_addresses | AUTO  |
      +--------------------------+-------+
      

      Attachments

        Issue Links

          Activity

            brianv Brian added a comment -

            Fully agree, I am facing this issue since an update from MariaDB10.3/Galera 3 to Mariadb10.5/Galera4. As staf wagemakers said, we also use this for monitoring purposes.

            brianv Brian added a comment - Fully agree, I am facing this issue since an update from MariaDB10.3/Galera 3 to Mariadb10.5/Galera4. As staf wagemakers said, we also use this for monitoring purposes.

            ramesh Can you test with 10.1 and 10.2.

            jplindst Jan Lindström (Inactive) added a comment - ramesh Can you test with 10.1 and 10.2.

            jplindst 10.1 and 10.2 show the IP addresses in the wsrep_incoming_addresses status variable, even if you did not specify the IP address in the wsrep_node_incoming_address variable through the cnf file or the Galera startup command.

            node1:root@localhost> select @@version;
            +-----------------------+
            | @@version             |
            +-----------------------+
            | 10.2.44-MariaDB-debug |
            +-----------------------+
            1 row in set (0.00 sec)
             
            node1:root@localhost> 
            Status variable
            node1:root@localhost> SHOW GLOBAL STATUS LIKE 'wsrep_incoming_addresses';
            +--------------------------+---------------------------------+
            | Variable_name            | Value                           |
            +--------------------------+---------------------------------+
            | wsrep_incoming_addresses | 127.0.0.1:11531,127.0.0.1:10979 |
            +--------------------------+---------------------------------+
            1 row in set (0.00 sec)
             
            node1:root@localhost>
             
             
            10.1.49-opt>select @@version;
            +-----------------+
            | @@version       |
            +-----------------+
            | 10.1.49-MariaDB |
            +-----------------+
            1 row in set (0.00 sec)
             
            10.1.49-opt>SHOW GLOBAL STATUS LIKE 'wsrep_incoming_addresses';
            +--------------------------+---------------------------------+
            | Variable_name            | Value                           |
            +--------------------------+---------------------------------+
            | wsrep_incoming_addresses | 127.0.0.1:10491,127.0.0.1:10913 |
            +--------------------------+---------------------------------+
            1 row in set (0.00 sec)
             
            10.1.49-opt>
            

            ramesh Ramesh Sivaraman added a comment - jplindst 10.1 and 10.2 show the IP addresses in the wsrep_incoming_addresses status variable, even if you did not specify the IP address in the wsrep_node_incoming_address variable through the cnf file or the Galera startup command. node1:root@localhost> select @@version; +-----------------------+ | @@version | +-----------------------+ | 10.2.44-MariaDB-debug | +-----------------------+ 1 row in set (0.00 sec)   node1:root@localhost> Status variable node1:root@localhost> SHOW GLOBAL STATUS LIKE 'wsrep_incoming_addresses'; +--------------------------+---------------------------------+ | Variable_name | Value | +--------------------------+---------------------------------+ | wsrep_incoming_addresses | 127.0.0.1:11531,127.0.0.1:10979 | +--------------------------+---------------------------------+ 1 row in set (0.00 sec)   node1:root@localhost>     10.1.49-opt>select @@version; +-----------------+ | @@version | +-----------------+ | 10.1.49-MariaDB | +-----------------+ 1 row in set (0.00 sec)   10.1.49-opt>SHOW GLOBAL STATUS LIKE 'wsrep_incoming_addresses'; +--------------------------+---------------------------------+ | Variable_name | Value | +--------------------------+---------------------------------+ | wsrep_incoming_addresses | 127.0.0.1:10491,127.0.0.1:10913 | +--------------------------+---------------------------------+ 1 row in set (0.00 sec)   10.1.49-opt>

            Because based on testing this is regression from 10.3 to 10.4, I will set this bug as a blocker.

            jplindst Jan Lindström (Inactive) added a comment - Because based on testing this is regression from 10.3 to 10.4, I will set this bug as a blocker.

            Thx Jan Lindström !

            swag_idirect staf wagemakers added a comment - Thx Jan Lindström !

            People

              jplindst Jan Lindström (Inactive)
              marcelo.altmann Marcelo Altmann
              Votes:
              7 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.