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

preferred_server doesn't work with multi-table queries

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.4.4
    • 2.5.0
    • schemarouter
    • None
    • MXS-SPRINT-99

    Description

      Given the following query:

      SELECT a.data, b.data FROM shared.t1 AS a JOIN private.t1 AS b ON (a.id = b.id);
      

      If the database shared is located on all servers but private is located only on one server, the query will be routed to the preferred server. This happens because the shard location information contains only the chosen location, not the actual locations where the database exists. The act of choosing the shard location is done too early when there is a conflict and as a result of this the query is routed to the preferred server.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            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.