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

LOAD DATA LOCAL INFILE is not ignored by protocol modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.13
    • Fix Version/s: 2.2.14
    • Component/s: Protocol
    • Labels:
      None

      Description

      When a LOAD DATA LOCAL INFILE is executed, the readwritesplit module goes into a special mode where it ignores the data stream until an empty packet is received. By ignoring the stream, readwritesplit avoids misinterpreting the data stream as commands.

      This functionality is not implemented in the protocol modules due to the fact that previously, they did not need it. With the fixes to the user re-authentication, the protocol modules need to be aware of the commands being executed.

      As LOAD DATA LOCAL INFILE responds with a specific response packet (command byte is set to 0xfb), query parsing is not required. This means that the code currently residing in readwritesplit (rwbackend.cc on the develop branch) must be moved to the client protocol module.

        Attachments

          Activity

            People

            Assignee:
            markus makela markus makela
            Reporter:
            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.