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

SET wait_timeout is not respected by MaxScale

    XMLWordPrintable

Details

    • MXS-SPRINT-277

    Description

      Problem

      If you configure readwritesplit to not close the connection immediately due to an error (e.g. with transaction_replay=true), a SET wait_timeout command is effectively ignored by MaxScale. MaxScale should intercept it and adjust the session's own wait_timeout to be that of the SQL command, not the one in the service.

      Implemented Fix

      The MaxScale SET parser now tracks wait_timeout in addition to sql_mode. Only simple SET statements with plain integer values like SET wait_timeout=300 are supported. More complex expressions of any sorts, e.g. SET wait_timeout=(SELECT 1 + 1);, are not supported.

      Attachments

        Issue Links

          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:

                Time Tracking

                  Estimated:
                  Original Estimate - 3d
                  3d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 3d
                  3d

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.