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

Maxscale key limitations

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 22.08.11
    • N/A
    • None
    • MXS-SPRINT-206

    Description

      We have been using mariaDB on a project for a number of years. We are now moving to the galera cluster and using maxscale/cdc-client to get notifications of updates. One of our tables is defined as follows:

      show create table nf_profile_json;
      +-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | Table           | Create Table                                                                                                                                                                                                         |
      +-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      | nf_profile_json | CREATE TABLE `nf_profile_json` (
        `nfinstanceid` binary(16) NOT NULL,
        `nfprofile` longtext NOT NULL,
        PRIMARY KEY (`nfinstanceid`) USING HASH
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci |
      +-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.000 sec)
      

      If I insert a new entry in this table with a "small" key, it works fine. For example:

      insert into nf_profile_json values (X'111111, "Some string");
      

      This works fine. I see cdc-client gets triggered. However, if I use a true key value, such as:

      insert into nf_profile_json values (X'11112222333344445555666677778888, "Some string");
      

      This fails, I get an error in the maxscale log file:

      2024-04-03 19:34:15   error  : Failed to read field value 'nfinstanceid', type 'unknown type' at file offset 1603714, record number 2.
      2024-04-03 19:34:15   error  : Failed to read field value 'nfinstanceid', type 'unknown type' at file offset 1609339, record number 2.
      2024-04-03 19:44:15   error  : Failed to read field value 'nfinstanceid', type 'unknown type' at file offset 1614292, record number 2.
      2024-04-03 19:44:15   error  : Failed to read field value 'nfinstanceid', type 'unknown type' at file offset 1619917, record number 2.
      2024-04-03 19:54:15   error  : Failed to read field value 'nfinstanceid', type 'unknown type' at file offset 1624870, record number 2.
      2024-04-03 19:54:15   error  : Failed to read field value 'nfinstanceid', type 'unknown type' at file offset 1630495, record number 2.
      

      This is just a small portion of the log fine. I have not verified where the "breaking point" is where the key starts becoming too long.

      Attachments

        Activity

          People

            markus makela markus makela
            d3965313 Darren Allande
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.