Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1670

"alter server abc address=..." does not immediately register in monitor

    XMLWordPrintable

Details

    • MXS-SPRINT-103

    Description

      If altering server address to an invalid address, the monitor does not take address to use unless the monitor is stopped and restarted.

      MaxScale> list servers
      Servers.
      -------------------+-----------------+-------+-------------+--------------------
      Server             | Address         | Port  | Connections | Status              
      -------------------+-----------------+-------+-------------+--------------------
      LocalMaster1       | 127.0.0.1       |  3001 |           0 | Master, Running
      LocalSlave1        | 127.0.0.1       |  3002 |           0 | Slave, Running
      LocalSlave2        | 127.0.0.1       |  3003 |           0 | Slave, Running
      -------------------+-----------------+-------+-------------+--------------------
      MaxScale> alter server LocalMaster1 address=nowhere
      MaxScale> list servers
      Servers.
      -------------------+-----------------+-------+-------------+--------------------
      Server             | Address         | Port  | Connections | Status              
      -------------------+-----------------+-------+-------------+--------------------
      LocalMaster1       | nowhere         |  3001 |           0 | Master, Running
      LocalSlave1        | 127.0.0.1       |  3002 |           0 | Slave, Running
      LocalSlave2        | 127.0.0.1       |  3003 |           0 | Slave, Running
      -------------------+-----------------+-------+-------------+--------------------
      MaxScale> call command mariadbmon switchover MariaDB-Monitor LocalSlave1
      MaxScale> list servers
      Servers.
      -------------------+-----------------+-------+-------------+--------------------
      Server             | Address         | Port  | Connections | Status              
      -------------------+-----------------+-------+-------------+--------------------
      LocalMaster1       | nowhere         |  3001 |           0 | Slave, Running
      LocalSlave1        | 127.0.0.1       |  3002 |           0 | Master, Running
      LocalSlave2        | 127.0.0.1       |  3003 |           0 | Slave, Running
      -------------------+-----------------+-------+-------------+--------------------
      MaxScale> shutdown monitor MariaDB-Monitor
      MaxScale> restart monitor MariaDB-Monitor
      MaxScale> list servers
      Servers.
      -------------------+-----------------+-------+-------------+--------------------
      Server             | Address         | Port  | Connections | Status              
      -------------------+-----------------+-------+-------------+--------------------
      LocalMaster1       | nowhere         |  3001 |           0 | Down
      LocalSlave1        | 127.0.0.1       |  3002 |           1 | Master, Running
      LocalSlave2        | 127.0.0.1       |  3003 |           1 | Slave, Running
      -------------------+-----------------+-------+-------------+--------------------
      MaxScale> alter server LocalMaster1 address=127.0.0.1
      MaxScale> list servers
      Servers.
      -------------------+-----------------+-------+-------------+--------------------
      Server             | Address         | Port  | Connections | Status              
      -------------------+-----------------+-------+-------------+--------------------
      LocalMaster1       | 127.0.0.1       |  3001 |           0 | Slave, Running
      LocalSlave1        | 127.0.0.1       |  3002 |           1 | Master, Running
      LocalSlave2        | 127.0.0.1       |  3003 |           1 | Slave, Running
      -------------------+-----------------+-------+-------------+--------------------
      

      The router does detect the error immediately.

      Attachments

        Activity

          People

            markus makela markus makela
            esa.korhonen Esa Korhonen
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.