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

The MaxScale parser should be more flexible when it comes to system variables.

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 2.0.0
    • Core
    • None

    Description

      Currently MaxScale uses the SQL parser from the embedded library. That means that it will not recognize Galera variables, such as @@wsrep_node_name, but will at that point abort the parsing.

      The implication is that, for instance, select @@hostname, @@wsrep_node_name and select @@wsrep_node_name, @@hostname are routed differently. The former is routed to a slave, but the latter to master.

      The parser should be more relaxed so that it would not abort the parsing when it encounters an unknown system variable, as long as it looks like one. Then, what impact on the routing decision an unrecognized variable has, should be configurable via a configuration file.

      That way the behaviour of MaxScale would not be strictly dependent on it having exactly the same parser as the one in the backend.

      Attachments

        Issue Links

          Activity

            People

              johan.wikman Johan Wikman
              johan.wikman Johan Wikman
              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.