mariadb/mysql-test/suite/galera
Rucha Deodhar 41a2ccc94a MDEV-35511: Backport fix for Audit log not reporting user in Galera cluster
Setting a nae for the the THD::security_ctx:user field for wsrep applier threads.
With this, the audit log events related to wsrep applying will be written in the
audit log.

Using user name <cluster user> for wsrep appliers. This is for having identical
look with async replication, which uses: <replication_user> user name.
Another option for <cluster user> could be e.g. <wsrep user>. Hoever, using galera
for user name is not a good pick, as the cluster may have (and soon will have)
other GCS backends.

Using same approach as async replication to replace the security_ctx user name
with "system user" for processlist output.

Commit has also mtr test galera.MDEV-35511, to vevrify wsrep applier audit logging.
The test does not install/uninstall audit log plugin, bu loads the audit log plugin
before the test. This is because uninstalling the audit log plugin gives a warning
saying that plugin is busy and uninstall will be delayed until server shutdown.
This anomaly must be because of the applier thread being active audit logger.
Same problem with plugin unsinstall happens also with async relication workers.
If plugn remains installed, the post test sanity check will complain of mismatching
state of pre and post test states.
2025-11-07 15:39:55 +02:00
..
include Merge branch '10.5' into '10.6' 2025-04-02 04:43:24 +02:00
r MDEV-35511: Backport fix for Audit log not reporting user in Galera cluster 2025-11-07 15:39:55 +02:00
t MDEV-35511: Backport fix for Audit log not reporting user in Galera cluster 2025-11-07 15:39:55 +02:00
disabled.def make max_session_mem_used tests more reliable 2025-10-25 18:07:48 +02:00
galera_2nodes.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_master.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_replica_2primary.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_slave.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2x2nodes.cnf MDEV-33523 Spurious deadlock error when wsrep_on=OFF 2024-06-06 19:19:34 +02:00
galera_3nodes_as_slave.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_4nodes.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
my.cnf
suite.pm galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00