Debian Codegraph @

mysql-test/suite/galera/t/MDEV-37991.test

raw
1 --source include/galera_cluster.inc
2
3 # Save original auto_increment_offset values.
4 --let $node_1=node_1
5 --let $node_2=node_2
6 --source include/auto_increment_offset_save.inc
7
8 --connection node_2
9 SET SESSION max_error_count=0;
10 SET GLOBAL wsrep_ignore_apply_errors = 0;
11 --error ER_PASSWORD_NO_MATCH
12 GRANT SELECT ON *.* TO dummy@'localhost';
13 SHOW WARNINGS;
14 --echo # Node_2 is on inconsistency state so kill it
15 SET SESSION wsrep_sync_wait = 0;
16 --source include/kill_galera.inc
17
18 --let $start_mysqld_params =
19 --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.2.expect
20 --source include/start_mysqld.inc
21 --source include/wait_until_ready.inc
22
23 --connection node_1
24 --let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
25 --source include/wait_condition.inc
26
27 --connection node_2
28 SET GLOBAL wsrep_ignore_apply_errors = DEFAULT;
29 call mtr.add_suppression("Inconsistency detected: Inconsistent by consensus on");
30 --source include/auto_increment_offset_restore.inc