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

maxctrl list servers | State | Enhancement

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • N/A
    • N/A
    • None

    Description

      Maxscale confusingly shows master node as slave when variable read_only=ON on master. This causes confusion in support and the customer which could be resolved with a clearer status message or logged message

      Can we have a clearer text like

      Master (But Read Only), Running 
      

      or enhance the message

      024-05-30 16:45:51 warning: [mariadbmon] The current primary server 'onl-actixmdb01' is no longer valid because it is in read-only mode, but there is no valid alternative to swap to.
      

      removing `but there is no valid alternative to swap to.` to recommend setting read_only=OFF or use --force flag to ignore
      removing "no longer valid " version with "The current primary server 'onl-actixmdb01' cant accept writes because its in read-only mode"

      Before: (confusing support & customer)

      ┌────────────────┬───────────────┬──────┬─────────────┬────────────────┬──────────┬───────────────┐
      │ Server │ Address │ Port │ Connections │ State │ GTID │ Monitor │
      ├────────────────┼───────────────┼──────┼─────────────┼────────────────┼──────────┼───────────────┤
      │ onl-actixmdb01 │ 209.171.0.16133060 │ Slave, Running │ 1-1-1193 │ Actix_monitor │
      ├────────────────┼───────────────┼──────┼─────────────┼────────────────┼──────────┼───────────────┤
      │ onl-actixmdb02 │ 209.171.0.16233060 │ Slave, Running │ 1-1-1193 │ Actix_monitor │
      ├────────────────┼───────────────┼──────┼─────────────┼────────────────┼──────────┼───────────────┤
      │ onl-actixmdb03 │ 209.171.0.16333060 │ Slave, Running │ 1-1-1193 │ Actix_monitor │
      └────────────────┴───────────────┴──────┴─────────────┴────────────────┴──────────┴───────────────┘
      

      After running `set global read_only=OFF`

      [root@onl-actixmed-30 ~]# maxctrl list servers
      ┌────────────────┬───────────────┬──────┬─────────────┬─────────────────┬──────────┬───────────────┐
      │ Server         │ Address       │ Port │ Connections │ State           │ GTID     │ Monitor       │
      ├────────────────┼───────────────┼──────┼─────────────┼─────────────────┼──────────┼───────────────┤
      │ onl-actixmdb01 │ 209.171.0.16133060           │ Master, Running │ 1-1-1193 │ Actix_monitor │
      ├────────────────┼───────────────┼──────┼─────────────┼─────────────────┼──────────┼───────────────┤
      │ onl-actixmdb02 │ 209.171.0.16233060           │ Slave, Running  │ 1-1-1193 │ Actix_monitor │
      ├────────────────┼───────────────┼──────┼─────────────┼─────────────────┼──────────┼───────────────┤
      │ onl-actixmdb03 │ 209.171.0.16333060           │ Slave, Running  │ 1-1-1193 │ Actix_monitor │
      └────────────────┴───────────────┴──────┴─────────────┴─────────────────┴──────────┴───────────────┘
      [root@onl-actixmed-30 ~]#
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              allen.herrera Allen Herrera
              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.