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

COM_STMT_EXECUTE in transaction get unexpected result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.21, 2.3.13
    • Fix Version/s: 2.5.0
    • Component/s: readwritesplit
    • Labels:
      None
    • Sprint:
      MXS-SPRINT-99

      Description

      We fix MX-2521 by routing the execute stmts which n_params > 0 and no metadata to previous node, but it not works with transaction,
      For example:

      prepare;
      execute; // to ro1 with metadata
      execute; // to ro1 with without metadata
      begin;
      execute; //  to master without metadata;
      commit;
      

      Suggestion:
      1. Record metadata in first execution;
      2. Add metadata to the following execution ( maybe every backend just add once)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markus makela markus makela
              Reporter:
              huangyouqian huangyouqian
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: