Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6339

deprecate log-slow-admin-statements, Better user experience with slow log filters

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 11.0.1
    • Server
    • None

    Description

      Hidden server parameter --log-slow-admin-statements

      • is not a server variable
      • is confusing with variable log_slow_filter=admin

      The task would deprecate parameter log-slow-admin-statements, setting is default compile value to yes.

      changing log_slow_filter to same usage as optimizer_switch using boolean mode

      Reading word filter one expect that admin=yes or just admin means that the server filter admin statements.
      What append today is the opposite and that's confusing in itself !

      To be consistent we can rename log_slow_filter to log_slow_switch where admin=yes would mean that we don't filter admin statements.

      The default would become log_slow_switch="admin=no" to get same content inside slow query log as today

      Attachments

        Activity

          stephane@skysql.com VAROQUI Stephane created issue -
          stephane@skysql.com VAROQUI Stephane made changes -
          Field Original Value New Value
          Description Hidden server parameter --log-slow-admin-statements
          - is not a server variable
          - is confusing with variable log_slow_filter=admin

          i propose to deprecate parameter log-slow-admin-statements , and setting is default compile value to yes,

          changing log_slow_filter to similar variable as optimizer_switch using boolean mode

          Reading word filter one expect that admin=yes or just admin means that the server filter all DDL statement.

          What append today is the opposite and that's confusing in itself

          A more consistent view would be to rename log_slow_filter to slow_query_log_switch where admin=yes would mean that we don't filter DDL Statement .

           
          Hidden server parameter --log-slow-admin-statements
          - is not a server variable
          - is confusing with variable log_slow_filter=admin

          The task would deprecate parameter log-slow-admin-statements, setting is default compile value to yes.

          changing log_slow_filter to same usage as optimizer_switch using boolean mode

          Reading word filter one expect that admin=yes or just admin means that the server filter admin statements.
          What append today is the opposite and that's confusing in itself !

          To be consistent we can rename log_slow_filter to log_slow_switch where admin=yes would mean that we don't filter admin statements.

           
          stephane@skysql.com VAROQUI Stephane made changes -
          Priority Trivial [ 5 ] Major [ 3 ]
          stephane@skysql.com VAROQUI Stephane made changes -
          Description Hidden server parameter --log-slow-admin-statements
          - is not a server variable
          - is confusing with variable log_slow_filter=admin

          The task would deprecate parameter log-slow-admin-statements, setting is default compile value to yes.

          changing log_slow_filter to same usage as optimizer_switch using boolean mode

          Reading word filter one expect that admin=yes or just admin means that the server filter admin statements.
          What append today is the opposite and that's confusing in itself !

          To be consistent we can rename log_slow_filter to log_slow_switch where admin=yes would mean that we don't filter admin statements.

           
          Hidden server parameter --log-slow-admin-statements
          - is not a server variable
          - is confusing with variable log_slow_filter=admin

          The task would deprecate parameter log-slow-admin-statements, setting is default compile value to yes.

          changing log_slow_filter to same usage as optimizer_switch using boolean mode

          Reading word filter one expect that admin=yes or just admin means that the server filter admin statements.
          What append today is the opposite and that's confusing in itself !

          To be consistent we can rename log_slow_filter to log_slow_switch where admin=yes would mean that we don't filter admin statements.

          The default would become log_slow_switch="admin=yes"
          stephane@skysql.com VAROQUI Stephane made changes -
          Description Hidden server parameter --log-slow-admin-statements
          - is not a server variable
          - is confusing with variable log_slow_filter=admin

          The task would deprecate parameter log-slow-admin-statements, setting is default compile value to yes.

          changing log_slow_filter to same usage as optimizer_switch using boolean mode

          Reading word filter one expect that admin=yes or just admin means that the server filter admin statements.
          What append today is the opposite and that's confusing in itself !

          To be consistent we can rename log_slow_filter to log_slow_switch where admin=yes would mean that we don't filter admin statements.

          The default would become log_slow_switch="admin=yes"
          Hidden server parameter --log-slow-admin-statements
          - is not a server variable
          - is confusing with variable log_slow_filter=admin

          The task would deprecate parameter log-slow-admin-statements, setting is default compile value to yes.

          changing log_slow_filter to same usage as optimizer_switch using boolean mode

          Reading word filter one expect that admin=yes or just admin means that the server filter admin statements.
          What append today is the opposite and that's confusing in itself !

          To be consistent we can rename log_slow_filter to log_slow_switch where admin=yes would mean that we don't filter admin statements.

          The default would become log_slow_switch="admin=no" to get same content inside slow query log as today
          serg Sergei Golubchik made changes -
          Fix Version/s 10.2.0 [ 14601 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 42341 ] MariaDB v2 [ 43040 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 43040 ] MariaDB v3 [ 62074 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.2 [ 14601 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 62074 ] MariaDB v4 [ 130234 ]
          danblack Daniel Black made changes -
          Assignee Daniel Black [ danblack ]
          danblack Daniel Black made changes -
          Fix Version/s 10.12 [ 28320 ]
          danblack Daniel Black added a comment - - edited

          Start with https://github.com/MariaDB/server/pull/2357 deprecation.

          Not sure I like the optimizer switch of putting a lot of variables into one variable. I've found it horridly hard to manipulate.

          I think filter can be read as inclusive or exclusive. Other filter uses seem to be inclusive.

          danblack Daniel Black added a comment - - edited Start with https://github.com/MariaDB/server/pull/2357 deprecation. Not sure I like the optimizer switch of putting a lot of variables into one variable. I've found it horridly hard to manipulate. I think filter can be read as inclusive or exclusive. Other filter uses seem to be inclusive.
          danblack Daniel Black made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          danblack Daniel Black made changes -
          Summary Better user experience with slow log filters deprecate log-slow-admin-statements, Better user experience with slow log filters
          danblack Daniel Black made changes -
          Assignee Daniel Black [ danblack ] Andrew Hutchings [ JIRAUSER52179 ]
          Status In Progress [ 3 ] In Review [ 10002 ]
          danblack Daniel Black made changes -
          Component/s Server [ 13907 ]
          Fix Version/s 11.0.1 [ 28548 ]
          Fix Version/s 11.0 [ 28320 ]
          Assignee Andrew Hutchings [ JIRAUSER52179 ] Daniel Black [ danblack ]
          Resolution Fixed [ 1 ]
          Status In Review [ 10002 ] Closed [ 6 ]
          AirFocus AirFocus made changes -
          Summary deprecate log-slow-admin-statements, Better user experience with slow log filters deprecate log-slow-admin-statements, Better user experience with slow log filters

          People

            danblack Daniel Black
            stephane@skysql.com VAROQUI Stephane
            Votes:
            3 Vote for this issue
            Watchers:
            4 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.