mirror of
https://github.com/MariaDB/server.git
synced 2025-11-05 21:36:12 +01:00
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.
18 lines
569 B
Text
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");
|