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

MTR: $SLAVE_MYSOCK/$SLAVE_MYPORT wrongly connects to master

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.3
    • N/A
    • Scripts & Clients
    • None

    Description

      Reproduce

      --source include/master-slave.inc
      --source include/have_innodb.inc
       
      connect (conn1,localhost,root,,test,$SLAVE_MYPORT,);
      select @@port;
       
      connect (conn2,localhost,root,,test,,$SLAVE_MYSOCK);
      select @@port;
       
      --echo Connecting client via -P
      --exec echo "select @@port;" |$MYSQL -P $SLAVE_MYPORT test
       
      --echo Connecting client via -S
      --exec echo "select @@port;" |$MYSQL -S $SLAVE_MYSOCK test
       
      --connection master
      --source include/rpl_end.inc
      

      Result on Windows

      connect  conn1,localhost,root,,test,$SLAVE_MYPORT,;
      select @@port;
      @@port
      16001
      connect  conn2,localhost,root,,test,,$SLAVE_MYSOCK;
      select @@port;
      @@port
      16000
      Connecting client via -P
      @@port
      16001
      Connecting client via -S
      @@port
      16000
      

      Result on Linux

      connect  conn1,localhost,root,,test,$SLAVE_MYPORT,;
      select @@port;
      @@port
      16000
      connect  conn2,localhost,root,,test,,$SLAVE_MYSOCK;
      select @@port;
      @@port
      16001
      Connecting client via -P
      @@port
      16000
      Connecting client via -S
      @@port
      16001
      

      On Linux it works vice-versa: $SLAVE_MYPORT is incorrect and $SLAVE_MYSOCK is correct.

      Expected

      In all cases port 16001 returned or connection is failed with appropriate error message.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            midenok Aleksey Midenkov
            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.