Debian Codegraph @

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

raw
1 #
2 # MDEV-35946: Assertion `thd->is_error()' failed in Sql_cmd_dml::prepare
3 #
4 --source include/have_innodb.inc
5 --source include/galera_cluster.inc
6
7 # Save original auto_increment_offset values.
8 --let $node_1=node_1
9 --let $node_2=node_2
10 --source include/auto_increment_offset_save.inc
11
12 #
13 # Disconnect from the cluster
14 #
15 SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
16 SET SESSION wsrep_sync_wait=0;
17 --let $wait_condition = SELECT VARIABLE_VALUE = 'non-Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
18 --source include/wait_condition.inc
19 SET SESSION wsrep_sync_wait=DEFAULT;
20
21 #
22 # If bug is present, assertion will fire
23 # during the execution of the following DELETE
24 #
25 --error ER_LOCK_WAIT_TIMEOUT
26 DELETE FROM mysql.wsrep_streaming_log;
27
28 #
29 # Reconnect to the cluster
30 #
31 SET SESSION wsrep_sync_wait=0;
32 SET GLOBAL wsrep_provider_options = 'gmcast.isolate=0';
33 --let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
34 --source include/wait_condition.inc
35 SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
36 SET SESSION wsrep_sync_wait=DEFAULT;
37
38 --source include/auto_increment_offset_restore.inc
39 CALL mtr.add_suppression("WSREP: Protocol violation\\. JOIN message sender .+ ?is not in state transfer \\(SYNCED\\)\\. Message ignored\\.");