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

Error msg reports write query failure for read queries

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Incomplete
    • 23.02.1
    • N/A
    • readwritesplit
    • None

    Description

      MaxScale error message for delayed_retry_timeout does not distinguish between read/write queries.

      https://github.com/mariadb-corporation/MaxScale/blob/maxscale-23.02.1/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc#L954

      This was observed during SkySQL testing where the following statement was executed every 2 seconds while the primary was terminated.

      SELECT * FROM sampledb.employees;
      +----+-----------+----------+-------------------------+------+
      | id | firstname | lastname | email                   | age  |
      +----+-----------+----------+-------------------------+------+
      |  1 | john      | doe      | john.doe@example.com    |   30 |
      |  2 | jane      | doe      | jane.doe@example.com    |   28 |
      |  3 | alice     | smith    | alice.smith@example.com |   35 |
      |  4 | bob       | johnson  | bob.johnson@example.com |   40 |
      +----+-----------+----------+-------------------------+------+
      

      We observed the write query error message while only testing reads. (IP address has been changed for privacy)

      2023-06-13 12:36:47 warning: (41) [readwritesplit] [Read-Write-Service] Write query received from dbpgf14557113@192.0.2.0. 'delayed_retry_timeout' exceeded before a primary could be found. Closing client connection.
      

      Attachments

        Activity

          People

            markus makela markus makela
            clint Clint Moyer (Inactive)
            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.