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

AUTH_TEST_PLUGIN_SO points to old location, test main.plugin_auth fails with new client plugin path

    XMLWordPrintable

Details

    Description

      Applying recent MariaDB Connector C changes and applying https://github.com/MariaDB/server/pull/1478 leads to the mtr error:

      main.plugin_auth 'innodb'                w3 [ fail ]
              Test ended at 2020-04-04 16:12:11
       
      CURRENT_TEST: main.plugin_auth
      mysqltest: At line 417: query 'connect cleartext_con,localhost,uplain,cleartext_test' failed: 1045: Plugin mysql_clear_password could not be loaded: /usr/lib/mysql/plugin/mysql_clear_password.so: cannot open shared object file: No such file or directory
      

      This is because the new location for the plugin is usr/lib/*/libmariadb3/plugin/mysql_clear_password.so instead of usr/lib/mysql/plugin/mysql_clear_password.so

      Line 417 in plugin_auth.test looks like this:

      connect(cleartext_con,localhost,uplain,cleartext_test);
      

      In the beginning of the file the plugin is loaded with:

      --source include/have_plugin_auth.inc
      

      The file have_plugin.opt includes:

      --plugin-load-add=$AUTH_TEST_PLUGIN_SO
      

      I can't find where $AUTH_TEST_PLUGIN_SO is set or how to update the path now to the test.

      server$ grep -rF AUTH_TEST_PLUGIN *
      mysql-test/include/have_plugin_auth.opt:--plugin-load-add=$AUTH_TEST_PLUGIN_SO
      mysql-test/suite/perfschema/t/hostcache_ipv4_auth_plugin.test:--replace_result $AUTH_TEST_PLUGIN_SO PLUGIN_AUTH
      mysql-test/suite/perfschema/t/hostcache_ipv4_auth_plugin.test:eval install plugin test_plugin_server soname '$AUTH_TEST_PLUGIN_SO';
      mysql-test/suite/perfschema/t/hostcache_ipv6_auth_plugin.test:--replace_result $AUTH_TEST_PLUGIN_SO PLUGIN_AUTH
      mysql-test/suite/perfschema/t/hostcache_ipv6_auth_plugin.test:eval install plugin test_plugin_server soname '$AUTH_TEST_PLUGIN_SO';
      

      Please help how to track down the client library plugin path in mtr and update it to match new location.

      Attachments

        Activity

          People

            cvicentiu Vicențiu Ciorbaru
            otto Otto Kekäläinen
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.