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

MASTER_POS_WAIT(log_name,log_pos,timeout,"connection_name") hangs, does not respect the timeout

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0.18
    • Component/s: Replication
    • Labels:

      Description

      
      --source include/master-slave.inc
      
      --enable_connect_log
      
      --connection slave
      
      --echo # Normal anonymous connection -- works (expected -1)
      select master_pos_wait('master-bin.000001',1000000,1);
      
      --source include/stop_slave.inc
      reset slave all;
      eval change master 'my_slave' to master_port=$MASTER_MYPORT, master_host='127.0.0.1', master_user='root';
      set default_master_connection = 'my_slave';
      --source include/start_slave.inc
      
      --echo # Call without connection name -- works (expected -1)
      select master_pos_wait('master-bin.000001',1000000,1);
      
      set default_master_connection = '';
      
      --echo # Call for non-existing anonymous connection -- works (expected NULL)
      select master_pos_wait('master-bin.000001',1000000,1);
      
      --echo # Call with a valid connection name -- hangs
      select master_pos_wait('master-bin.000001',1000000,1,"my_slave");
      

      Reproducible on the current 10.0 tree revno 4499.
      Reproducible on 10.0.10 release.

        Gliffy Diagrams

          Attachments

            Activity

            Show
            Farnham Martin Kaluznik added a comment - https://github.com/MariaDB/server/pull/32
            Hide
            knielsen Kristian Nielsen added a comment -

            Pushed into 10.0, thanks Martin!

            Show
            knielsen Kristian Nielsen added a comment - Pushed into 10.0, thanks Martin!

              People

              • Assignee:
                knielsen Kristian Nielsen
                Reporter:
                elenst Elena Stepanova
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: