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

Enable implicit creation of filters.

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Currently a filter must always be explicitly created before it can be used.

      [MyFilter]
      type=filter
      module=xyzfilter
      ...
       
      [MyService]
      type=service
      ...
      filters=MyFilter
      

      That's unavoidable, if the filter has parameters that need to be set, but if it has not, it is in principle an unnecessary extra step.

      By making it possible to refer directly to the filter module, in cases where the filter takes no parameters that extra step could be avoided. E.g.

      [MyService]
      type=service
      ...
      filters=xyzfilter
      

      When this is possible, it would make sense to create very specific filters that do one thing, and one thing only. For instance, MXS-5354 will make it possible to allow only certain types of queries to go through and in desired the behaviour must be configured.

      With the functionality enabled by this feature, it would make sense to create specializations of it, say, readonly, writeonly, noddl, etc. that require no configuration and thus then easily could be used. E.g

      [MyService]
      type=service
      ...
      filters=readonly
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            johan.wikman Johan Wikman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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