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

BINLOG_GTID_POS() is empty on fresh database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.2.10
    • N/A
    • Replication
    • None

    Description

      If I want to set-up a MariaDB Master/Master GTID based Replication from a fresh created empty instance this is not possible because BINLOG_GTID_POS() return empty set.
      I have to add data to the database to get my first GTID!
      This is especially evil on a DBaaS platform where you want to provide an empty M/M set-up...

      reset master;
      show master status;
      ------------------------------------------------------+

      File Position Binlog_Do_DB Binlog_Ignore_DB

      ------------------------------------------------------+

      binlog-m1.000001 328    

      ------------------------------------------------------+
      select BINLOG_GTID_POS("binlog-m1.000001", 328);
      ------------------------------------------

      BINLOG_GTID_POS("binlog-m1.000001", 328)

      ------------------------------------------

       

      ------------------------------------------
      show global variables like 'gtid%';
      -----------------------------+

      Variable_name Value

      -----------------------------+

      gtid_binlog_pos  
      gtid_binlog_state  
      gtid_current_pos 2-2-1
      gtid_domain_id 1
      gtid_ignore_duplicates OFF
      gtid_slave_pos 2-2-1
      gtid_strict_mode ON

      -----------------------------+
      insert into test.test values (null, 'some data', null);
      show master status;
      ------------------------------------------------------+

      File Position Binlog_Do_DB Binlog_Ignore_DB

      ------------------------------------------------------+

      binlog-m1.000001 555    

      ------------------------------------------------------+
      select BINLOG_GTID_POS("binlog-m1.000001", 555);
      ------------------------------------------

      BINLOG_GTID_POS("binlog-m1.000001", 555)

      ------------------------------------------

      1-1-1

      ------------------------------------------
      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,2-2-1
      gtid_domain_id 1
      gtid_ignore_duplicates OFF
      gtid_slave_pos 2-2-1
      gtid_strict_mode ON

      -----------------------------------+

      Attachments

        Activity

          People

            Unassigned Unassigned
            oli Oli Sennhauser
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.