Skip to content

Commit ea197c0

Browse files
philip-galeraJan Lindström
authored andcommitted
Galera MTR Tests: Stability fixes
1 parent a7f010a commit ea197c0

10 files changed

+23
-19
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ GAL-480 : Investigate
3636
galera_fk_no_pk :Investigate
3737
galera_account_management : Investigate
3838
galera.galera_var_retry_autocommit : MDEV-12319 #Sparodic Faliure
39-
galera.galera_gcs_fc_limit : MDEV-12319 #Sparodic Faliure
4039
galera.galera_toi_ddl_nonconflicting : MDEV-12319 #Sparodic Faliure
41-
galera.mysql-wsrep#198 : MDEV-12319 #Sparodic Faliure
4240
galera.galera_pc_ignore_sb : MDEV-12319 #Sparodic Faliure
43-
galera.MW-329 : MDEV-12319 #Sparodic Faliure
4441
galera.galera_ist_recv_bind : MDEV-12319 #Failed to start mysqld
45-
galera.galera_ist_restart_joiner : MDEV-12319 #Failed to start mysqld
4642
galera.galera_ssl_compression : MDEV-12319 #Failed to start mysqld
4743
galera.galera_wan : MDEV-12319 #Failed to start mysqld
4844
galera.rpl_row_annotate : MDEV-12319 #Failed to start mysqld

mysql-test/suite/galera/r/MW-329.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ VARIABLE_VALUE > 0
1818
1
1919
DROP PROCEDURE proc_insert;
2020
DROP TABLE t1;
21+
CALL mtr.add_suppression("conflict state 3 after post commit");

mysql-test/suite/galera/r/galera_as_slave_autoinc.result

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ i c
3535
show variables like 'binlog_format';
3636
Variable_name Value
3737
binlog_format STATEMENT
38-
show variables like '%auto_increment%';
38+
show variables like 'auto_increment_increment';
3939
Variable_name Value
4040
auto_increment_increment 7
41-
auto_increment_offset 5
42-
wsrep_auto_increment_control ON
4341
select * from t1;
4442
i c
4543
1 dummy_text

mysql-test/suite/galera/r/galera_ist_restart_joiner.result

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ UPDATE t1 SET f2 = 'c' WHERE f1 > 2;
77
SET GLOBAL wsrep_provider_options = 'dbug=d,recv_IST_after_apply_trx';
88
SET SESSION wsrep_sync_wait = 0;
99
Loading wsrep_provider ...
10-
SHOW STATUS LIKE 'wsrep_debug_sync_waiters';
11-
Variable_name Value
12-
wsrep_debug_sync_waiters recv_IST_after_apply_trx
10+
SET SESSION wsrep_on=OFF;
11+
SET SESSION wsrep_on=ON;
1312
UPDATE t1 SET f2 = 'd' WHERE f1 > 3;
1413
CREATE TABLE t2 (f1 INTEGER);
1514
UPDATE t1 SET f2 = 'e' WHERE f1 > 4;

mysql-test/suite/galera/r/mysql-wsrep#198.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
22
CREATE TABLE t2 (id INT PRIMARY KEY) ENGINE=InnoDB;
3+
SELECT 1 FROM DUAL;
4+
1
5+
1
36
LOCK TABLE t2 WRITE;
47
OPTIMIZE TABLE t1,t2;;
58
REPAIR TABLE t1,t2;;

mysql-test/suite/galera/t/MW-329.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,6 @@ SELECT VARIABLE_VALUE > 0 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_N
8080
--connection node_1
8181
DROP PROCEDURE proc_insert;
8282
DROP TABLE t1;
83+
84+
# Due to MW-330, Multiple "conflict state 3 after post commit" warnings if table is dropped while SP is running
85+
CALL mtr.add_suppression("conflict state 3 after post commit");

mysql-test/suite/galera/t/galera_as_slave_autoinc.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ insert into t1(i) values(null), (null), (null);
4848
select * from t1;
4949

5050
show variables like 'binlog_format';
51-
show variables like '%auto_increment%';
51+
show variables like 'auto_increment_increment';
5252

5353
--connection node_2
5454
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';

mysql-test/suite/galera/t/galera_gcs_fc_limit.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ LOCK TABLE t1 WRITE;
2121
--connection node_1
2222
--sleep 1
2323
INSERT INTO t1 VALUES (2);
24-
--sleep 1
24+
--sleep 2
2525
INSERT INTO t1 VALUES (3);
26-
--sleep 1
26+
--sleep 2
2727
INSERT INTO t1 VALUES (4);
28-
--sleep 1
28+
--sleep 2
2929

3030
# This query will hang because flow control will kick in
3131
--send

mysql-test/suite/galera/t/galera_ist_restart_joiner.test

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ SET SESSION wsrep_sync_wait = 0;
4848
# ... and restart provider to force IST
4949
--echo Loading wsrep_provider ...
5050
--disable_query_log
51+
# base_port setting is lost for some reason when unloading provider, so we need to restore it
52+
--eval SET GLOBAL wsrep_provider_options= 'base_port=$NODE_GALERAPORT_2';
5153
--eval SET GLOBAL wsrep_provider = '$wsrep_provider_orig';
5254
--eval SET GLOBAL wsrep_cluster_address = '$wsrep_cluster_address_orig';
5355
--enable_query_log
5456

55-
# We can not use a wait_condition on SELECT * FROM INFORMATION_SCHEMA.GLOBAL_STATUS as such queries are blocked during IST
56-
# so we perform a simple sleep and SHOW instead
57-
58-
--sleep 5
59-
SHOW STATUS LIKE 'wsrep_debug_sync_waiters';
57+
SET SESSION wsrep_on=OFF;
58+
--let $wait_condition = SELECT VARIABLE_VALUE = '' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_debug_sync_waiters';
59+
--source include/wait_condition.inc
60+
SET SESSION wsrep_on=ON;
6061

6162
--connection node_1
6263
# Perform DML and DDL while IST is in progress

mysql-test/suite/galera/t/mysql-wsrep#198.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
55
CREATE TABLE t2 (id INT PRIMARY KEY) ENGINE=InnoDB;
66

77
--connection node_2
8+
# Ensure that the tables have been created on node #2
9+
SELECT 1 FROM DUAL;
10+
811
LOCK TABLE t2 WRITE;
912

1013
--connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2

0 commit comments

Comments
 (0)