Skip to content

MySQL 9.x: test_default_value_transaction_isolation_attr-t fails — 'mysql_native_password' plugin is not loaded #5628

@renecannao

Description

@renecannao

Symptom

TAP test test_default_value_transaction_isolation_attr-t (group mysql90-g3) fails during fixture setup on MySQL 9.x:

File utils.cpp, line 1048, Error: Plugin 'mysql_native_password' is not loaded
TAP test 226/325 'test_default_value_transaction_isolation_attr-t' RC: 1

What the test actually tests (not auth!)

From the file header — covers PR/feature #3466 (default-transaction_isolation per-user attribute):

  • Creates several new users with different values for the introduced attribute 'default-transaction_isolation'.
  • Connects with each user verifying the value has been correctly tracked for the frontend connection.
  • Performs SELECT @@transaction_isolation to verify value is correctly propagated to the backend connection.
  • Explicitly sets the value, verifies ProxySQL tracks the change.

Auth plugin is irrelevant to the feature under test.

Why it fails on 9.x

test_default_value_transaction_isolation_attr-t.cpp:225 calls:

int c_users_res = create_extra_users(proxysql_admin, mysql_server, users_configs);

create_extra_users()create_mysql_user() (in test/tap/tap/utils.cpp:1028) hardcodes IDENTIFIED WITH 'mysql_native_password' in the template. See #5627 for the full helper code.

Proposed fix

Same root and same fix as #5627 — this is not a separate bug, it's the same helper bug surfacing in a different test. Either:

  1. Change t_create_user_query in test/tap/tap/utils.cpp:1037–1038 to drop the hardcoded plugin (IDENTIFIED BY only — uses server default).
  2. Or add an optional plugin parameter to create_mysql_user() and pass "" by default.

This test doesn't care what plugin the backend uses; the helper-level fix is sufficient. Recommend linking this issue to #5627 and fixing both together.

Evidence from the test log

[proxysql-tester.py:853] msg: File utils.cpp, line 1048, Error: Plugin 'mysql_native_password' is not loaded
[proxysql-tester.py:882] TAP test 226/325 'test_default_value_transaction_isolation_attr-t' RC: 1

Related

Sibling MySQL 9.x issues:

Infrastructure: #5625 (dbdeployer-based MySQL 9.0/9.3/9.5 infras).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions