mariadb/mysql-test/suite/galera/r/MDEV-37991.result
Jan Lindström cedb0ed79d MDEV-37991 : Galera cluster crashes when granting permission to non existing user after setting max_error_count and wsrep_ignore_apply_errors to zero
There was two problems. Firsty, implementation assumed that
thd->wsrep_rgi is not nullptr, this is not true for TOI.
Secondly, Sql_condition_iterator was also assumed to be
not nullptr, this might not be also true.

Fixed by adding nullptr guard for thd->wsrep_rgi and
if Sql_condition_iterator is nullptr obtain error
information directly from Diagnostics_area if there
is some error there.
2025-11-04 16:22:45 +02:00

18 lines
569 B
Text

connection node_2;
connection node_1;
connection node_1;
connection node_2;
connection node_2;
SET SESSION max_error_count=0;
SET GLOBAL wsrep_ignore_apply_errors = 0;
GRANT SELECT ON *.* TO dummy@'localhost';
ERROR 28000: Can't find any matching row in the user table
SHOW WARNINGS;
Level Code Message
# Node_2 is on inconsistency state so kill it
SET SESSION wsrep_sync_wait = 0;
Killing server ...
connection node_1;
connection node_2;
SET GLOBAL wsrep_ignore_apply_errors = DEFAULT;
call mtr.add_suppression("Inconsistency detected: Inconsistent by consensus on");