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

Incorrect audit plugin busy warning upon UNINSTALL PLUGIN

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 10.6, 10.11, 11.4, 11.8, 12.0(EOL), 12.1
    • N/A
    • Plugin - Audit
    • None
    • Not for Release Notes

    Description

      INSTALL PLUGIN server_audit SONAME 'server_audit';
      SHOW GLOBAL STATUS LIKE 'Server_audit_active';  # Shows audit plug is not active
      UNINSTALL PLUGIN server_audit;  # Incorrect warning: 1620, Plugin is busy and will be uninstalled on shutdown
      SHOW WARNINGS;
      SHOW GLOBAL STATUS LIKE '%audit%';  # Shows plugin is already gone
      UNINSTALL PLUGIN server_audit;  # ERROR 1305 (42000): PLUGIN server_audit does not exist
      

      Leads to:

      CS 10.6.22 643319a7fb1e273797c2a1e46d76cfac0fa1da8f (Optimized) Build 06/06/2025

      10.6.22-opt>INSTALL PLUGIN server_audit SONAME 'server_audit';
      Query OK, 0 rows affected (0.001 sec)
       
      10.6.22-opt>SHOW GLOBAL STATUS LIKE 'Server_audit_active';  # Shows audit plug is not active
      +---------------------+-------+
      | Variable_name       | Value |
      +---------------------+-------+
      | Server_audit_active | OFF   |
      +---------------------+-------+
      1 row in set (0.000 sec)
       
      10.6.22-opt>UNINSTALL PLUGIN server_audit;  # Incorrect warning: 1620, Plugin is busy and will be uninstalled on shutdown
      Query OK, 0 rows affected, 1 warning (0.001 sec)
       
      10.6.22-opt>SHOW WARNINGS;
      +---------+------+----------------------------------------------------+
      | Level   | Code | Message                                            |
      +---------+------+----------------------------------------------------+
      | Warning | 1620 | Plugin is busy and will be uninstalled on shutdown |
      +---------+------+----------------------------------------------------+
      1 row in set (0.000 sec)
       
      10.6.22-opt>SHOW GLOBAL STATUS LIKE '%audit%';  # Shows plugin is already gone
      Empty set (0.000 sec)
       
      10.6.22-opt>UNINSTALL PLUGIN server_audit;  # ERROR 1305 (42000): PLUGIN server_audit does not exist
      ERROR 1305 (42000): PLUGIN server_audit does not exist
      

      So neither was the plugin busy (Server_audit_active=OFF) nor was it unloaded upon shutdown (was unloaded immediately).

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.