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

"maxctrl alter monitor MyMonitor auto_failover=true" fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 25.01.1
    • 25.01.2
    • mariadbmon
    • None
    • MXS-SPRINT-227

    Description

      The failover parameter type is an enum now. The enum parameter handling code assumes all valid values are json strings, but MaxCtrl passes "true"/"false" as json booleans and "1"/"0" as json integers. This causes maxctrl alter monitor MyMonitor auto_failover=true to fail. Similarly, "false", "1" and "0" also fail.

      Fix by adding a custom version of bool ParamEnum<T>::from_json(const json_t* pJson, value_type* pValue, std::string* pMessage) const for the AutoFailover-type.

      Attachments

        Activity

          People

            esa.korhonen Esa Korhonen
            esa.korhonen Esa Korhonen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 2d
                2d

                Git Integration

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