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

Potential race condition in shard map updating

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 21.06.16, 22.08.13, 23.02.10, 23.08.6, 24.02.2
    • 24.08.0
    • schemarouter
    • None

    Description

      If the mapping query returns an error on all databases, there's a possibility that the shard data structures are written to and read concurrently. Since the reading and writing of it is not thread-safe, there is a potential race condition that leads to undefined behavior.

      In practice this is unlikely to happen as the query will never fail due to anything in the database and the only way for it to happen is for the connection to break. However, it is possible to construct a configuration where a query will end up producing a result (e.g. using a regexfilter to cause syntax errors).

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.