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

START SLAVE zeroes `Rpl_semi_sync_slave_send_ack` even if a multi-source connection is active

    XMLWordPrintable

Details

    Description

      rpl_semi_sync_slave_send_ack.test

      --connect (master, 127.0.0.1, root, , , $SERVER_MYPORT_1)
      SET @@GLOBAL.rpl_semi_sync_master_enabled= 1;
      RESET MASTER;
       
      --connect (master_other, 127.0.0.1, root, , , $SERVER_MYPORT_2)
      SET @@GLOBAL.rpl_semi_sync_master_enabled= 1; # MDEV-32947
      RESET MASTER;
       
      --connect (slave, 127.0.0.1, root, , , $SERVER_MYPORT_3)
      --disable_warnings
        SET @@GLOBAL.gtid_slave_pos= '';
      --enable_warnings
      --replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1
      eval CHANGE MASTER TO
        master_host='127.0.0.1', master_port=$SERVER_MYPORT_1, master_user='root';
      SET @@SESSION.default_master_connection= 'other';
      --replace_result $SERVER_MYPORT_2 SERVER_MYPORT_2
      eval CHANGE MASTER TO
        master_host='127.0.0.1', master_port=$SERVER_MYPORT_2, master_user='root';
      SET @@GLOBAL.rpl_semi_sync_slave_enabled= 1;
       
       
      START SLAVE '';
      --connection master
        --let $status_var= Rpl_semi_sync_master_clients
        --let $status_var_value= 1
        --source include/wait_for_status_var.inc
       
        CREATE TABLE t (a INT);
        DROP TABLE t;
      --sync_slave_with_master
       
      SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack'; #=> 2
       
      START SLAVE IO_THREAD;
      --source include/wait_for_slave_io_to_start.inc
      SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack'; #=> Expected: 2; Actual: 0
       
       
      --source include/stop_slave_io.inc
      RESET SLAVE ALL;
      SET @@SESSION.default_master_connection= '';
      --source include/stop_slave.inc
      RESET SLAVE ALL;
      SET @@GLOBAL.rpl_semi_sync_slave_enabled= 0;
      --disconnect slave
       
      --connection master
      SET @@GLOBAL.rpl_semi_sync_master_enabled= 0;
      --disconnect master
       
      --connection master_other
      SET @@GLOBAL.rpl_semi_sync_master_enabled= 0; # MDEV-32947
      --disconnect master_other
      

      Attachments

        Issue Links

          Activity

            People

              ParadoxV5 Jimmy Hú
              ParadoxV5 Jimmy Hú
              Brandon Nesterenko Brandon Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 0.5h
                  0.5h

                  Git Integration

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