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

PLUGIN_VAR_DEPRECATED fails to throw a warning on startup

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • 10.9.0, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3, 10.10.0, 11.0.0
    • N/A
    • Server

    Description

      The flag PLUGIN_VAR_DEPRECATED that was implemented in MDEV-27730 works only partially. No deprecation warnings are being shown on server startup! Here is a simple test case:

      ./mtr --mysqld=--plugin-load-add=ha_example --mysqld=--example-deprecated-var=1 mtr-example.self
      grep -i deprecated var/log/mysqld.1.err
      

      10.3 e51a1d6fc0c105d56c6f05efb3d9fd05b7e4f22f

      $ /dev/shm/10.3/sql/mysqld --defaults-group-suffix=.1 --defaults-file=/dev/shm/10.3/mysql-test/var/my.cnf --log-output=file --plugin-load-add=ha_example --example-deprecated-var=1 --core-file --loose-debug-sync-timeout=300
      

      Note that there is no warning for specifying a deprecated parameter on startup. This kind of defeats the purpose of giving an early warning about parameters that are going to be removed, such as MDEV-27735 or MDEV-29983.

      Before 10.7, the flag was only used by the "example" plugin. In 10.7, it was used in the Spider storage engine, and in 10.9 for InnoDB.

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              marko Marko Mäkelä
              Votes:
              0 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.