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

Actual GTID value missing with Mariabackup when "wsrep_gtid_mode=ON"

Details

    Description

      Taking backup of such node (Bootstrap node) : Backup log GTID value missing

      [00] 2021-07-26 20:57:51 MySQL binlog position: filename 'mysql-bin.000005', position '616', GTID of the last change ''
      

      After prepare backup : (No GTID Value)

      [root@vmc11 mariabackup_slavebuild]# cat xtrabackup_binlog_info
      mysql-bin.000005        616
      
      

      Attachments

        Issue Links

          Activity

            pramod.mahto@mariadb.com Pramod Mahto added a comment - - edited

            Tested with 10.3.27 and 10.4.20 Version. No such issue reported.

             
            MariaDB [(none)]> select @@gtid_domain_id, @@server_id, @@wsrep_gtid_domain_id,@@wsrep_gtid_mode;
            +------------------+-------------+------------------------+-------------------+
            | @@gtid_domain_id | @@server_id | @@wsrep_gtid_domain_id | @@wsrep_gtid_mode |
            +------------------+-------------+------------------------+-------------------+
            |               11 |           1 |                      1 |                 1 |
            +------------------+-------------+------------------------+-------------------+
            1 row in set (0.000 sec)
             
             
            MariaDB [(none)]> create database sbtest2;
            Query OK, 1 row affected (0.006 sec)
             
            MariaDB [(none)]> show binlog events in 'mysql-bin.000004';
            +------------------+-----+-------------------+-----------+-------------+------------------------------------------------+
            | Log_name         | Pos | Event_type        | Server_id | End_log_pos | Info                                           |
            +------------------+-----+-------------------+-----------+-------------+------------------------------------------------+
            | mysql-bin.000004 |   4 | Format_desc       |         1 |         256 | Server ver: 10.3.27-MariaDB-log, Binlog ver: 4 |
            | mysql-bin.000004 | 256 | Gtid_list         |         1 |         285 | []                                             |
            | mysql-bin.000004 | 285 | Binlog_checkpoint |         1 |         328 | mysql-bin.000004                               |
            | mysql-bin.000004 | 328 | Gtid              |         1 |         370 | GTID 1-1-1                                     |
            | mysql-bin.000004 | 370 | Query             |         1 |         468 | create database sbtest2                        |
            +------------------+-----+-------------------+-----------+-------------+------------------------------------------------+
            5 rows in set (0.000 sec)
             
            MariaDB [(none)]> show global variables  like '%gtid%';
            +------------------------+-------+
            | Variable_name          | Value |
            +------------------------+-------+
            | gtid_binlog_pos        | 1-1-1 |
            | gtid_binlog_state      | 1-1-1 |
            | gtid_current_pos       | 1-1-1 |
            | gtid_domain_id         | 11    |
            | gtid_ignore_duplicates | OFF   |
            | gtid_pos_auto_engines  |       |
            | gtid_slave_pos         |       |
            | gtid_strict_mode       | OFF   |
            | wsrep_gtid_domain_id   | 1     |
            | wsrep_gtid_mode        | ON    |
            +------------------------+-------+
            10 rows in set (0.001 sec)
            
            

            pramod.mahto@mariadb.com Pramod Mahto added a comment - - edited Tested with 10.3.27 and 10.4.20 Version. No such issue reported.   MariaDB [(none)]> select @@gtid_domain_id, @@server_id, @@wsrep_gtid_domain_id,@@wsrep_gtid_mode; +------------------+-------------+------------------------+-------------------+ | @@gtid_domain_id | @@server_id | @@wsrep_gtid_domain_id | @@wsrep_gtid_mode | +------------------+-------------+------------------------+-------------------+ | 11 | 1 | 1 | 1 | +------------------+-------------+------------------------+-------------------+ 1 row in set (0.000 sec)     MariaDB [(none)]> create database sbtest2; Query OK, 1 row affected (0.006 sec)   MariaDB [(none)]> show binlog events in 'mysql-bin.000004'; +------------------+-----+-------------------+-----------+-------------+------------------------------------------------+ | Log_name | Pos | Event_type | Server_id | End_log_pos | Info | +------------------+-----+-------------------+-----------+-------------+------------------------------------------------+ | mysql-bin.000004 | 4 | Format_desc | 1 | 256 | Server ver: 10.3.27-MariaDB-log, Binlog ver: 4 | | mysql-bin.000004 | 256 | Gtid_list | 1 | 285 | [] | | mysql-bin.000004 | 285 | Binlog_checkpoint | 1 | 328 | mysql-bin.000004 | | mysql-bin.000004 | 328 | Gtid | 1 | 370 | GTID 1-1-1 | | mysql-bin.000004 | 370 | Query | 1 | 468 | create database sbtest2 | +------------------+-----+-------------------+-----------+-------------+------------------------------------------------+ 5 rows in set (0.000 sec)   MariaDB [(none)]> show global variables like '%gtid%'; +------------------------+-------+ | Variable_name | Value | +------------------------+-------+ | gtid_binlog_pos | 1-1-1 | | gtid_binlog_state | 1-1-1 | | gtid_current_pos | 1-1-1 | | gtid_domain_id | 11 | | gtid_ignore_duplicates | OFF | | gtid_pos_auto_engines | | | gtid_slave_pos | | | gtid_strict_mode | OFF | | wsrep_gtid_domain_id | 1 | | wsrep_gtid_mode | ON | +------------------------+-------+ 10 rows in set (0.001 sec)

            Hi,

            Please logs from all nodes and configuration files so i can look into it.

            mkaruza Mario Karuza (Inactive) added a comment - Hi, Please logs from all nodes and configuration files so i can look into it.

            People

              jplindst Jan Lindström (Inactive)
              pramod.mahto@mariadb.com Pramod Mahto
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.