Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-253 Multi-source replication
  3. MDEV-574

Multi-source: sync_with_master without the 2nd parameter always attempts to synchronize with connection '', regardless the current default_master_connection

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.9
    • Fix Version/s: 10.0
    • Component/s: None
    • Labels:
      None

      Description

      sync_with_master, if it's called without the explicit connection name, always attempts to execute master_pos_wait(binlog, position, timeout, ''), even if default_master_connection is set to something other than ''. It causes the command and the entire test fail if there is no '' connection, and can lead to more subtle problems if there is the connection, since the synchronization won't work as expected.

      10.0-base revno 3438

      Test case (you need to pull the revision as mentioned above to run the test, since it uses the new include file only introduced in this revision):

      --connect (slave,127.0.0.1,root,,,$SERVER_MYPORT_3)
       
      set default_master_connection = 'm1';
       
      --replace_result $SERVER_MYPORT_1 MYPORT_1
      eval change master to
      master_port=$SERVER_MYPORT_1,
      master_host='127.0.0.1',
      master_user='root';
       
      start slave;
      --source include/wait_for_slave_to_start.inc
       
      --connect (master1,127.0.0.1,root,,,$SERVER_MYPORT_1)
      --save_master_pos
       
      --connection slave
      --sync_with_master
       
      # Cleanup
       
      --source reset_master_slave.inc
      --disconnect slave
       
      --connection master1
      --source reset_master_slave.inc
      --disconnect master1

        Attachments

          Activity

            People

            Assignee:
            monty Michael Widenius
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration