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

bugzillaId-587: Hint filter don't work if listed before regex filter in configuration file

    XMLWordPrintable

    Details

      Description

      This is imported from bugzilla item http://bugs.mariadb.com/show_bug.cgi?id=587

      The fix version in bugzilla is "develop in commit 42b52c6f5153b45a5b1998aca54ca48480ef7514"

      Description Vilho Raatikka 2014-10-21 19:12:33 UTC
      If filters and rwsplit are configured as follows, hints don't work.

      [hints]
      type=filter
      module=hintfilter
       
      [regex]
      type=filter
      module=regexfilter
      match=fetch
      replace=select
       
      [RW Split Router]
      type=service
      router=readwritesplit
      servers=server1,server2,server3,server4
      max_slave_connections=100%
      use_sql_variables_in=all
      user=maxuser
      passwd=maxpwd
      filters=hints|regex
       

      Changing filters=regex|hints makes it work. This is due to processing order. Regex filter drops hint off.

        Attachments

          Activity

            People

            Assignee:
            tturenko Timofey Turenko
            Reporter:
            tturenko Timofey Turenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: