Skip to content

Commit cb83ae2

Browse files
committed
galera mtr suite: fixes for unstable tests
1 parent 391c9db commit cb83ae2

10 files changed

+11
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ while ($count)
8787
--enable_query_log
8888

8989
--connection node_1b
90-
--error 0,2013,1317,2026
90+
--error 0,1317,2013,2026
9191
--reap
9292
--enable_query_log
9393
--enable_result_log

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ INSERT INTO t1 VALUES (4,1);
5555
--connection node_3
5656
DROP TABLE t1;
5757

58-
5958
--connection node_2
6059
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
6160
--source include/wait_condition.inc

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ALTER TABLE t1 ADD COLUMN (f4 int(10));
8787
--source include/wait_condition.inc
8888
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.metadata_lock_info WHERE TABLE_NAME='t1' AND THREAD_ID=$insert_id
8989
--source include/wait_condition.inc
90-
--let $wait_condition = SELECT COUNT(*)=2 FROM information_schema.processlist WHERE Info like 'INSERT INTO t1 (f1) values("node1%")' AND (State = 'Commit' OR State='Waiting for certification')
90+
--let $wait_condition = SELECT COUNT(*)=2 FROM information_schema.processlist WHERE Info like 'INSERT INTO t1 (f1) values("node1%")' AND (State = 'Commit' OR State='Waiting for certification')
9191
--source include/wait_condition.inc
9292

9393
# nothing after BLOCK_DDL is applied

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ SET DEBUG_SYNC = "now WAIT_FOR bwoc_reached";
131131
SET DEBUG_SYNC = "now SIGNAL bwoc_continue";
132132
SET DEBUG_SYNC='RESET';
133133
--connection node_2a
134-
--error 0,1213
134+
--error 0,1213,2013,2026
135135
--reap
136136

137137
--connection node_2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ SET SESSION wsrep_sync_wait = 0;
5151
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'Waiting for table metadata lock%';
5252
--source include/wait_condition.inc
5353

54-
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'Commit';
54+
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (STATE LIKE 'Commit' or STATE = 'Waiting for certification');
5555
--source include/wait_condition.inc
5656

5757
UNLOCK TABLES;

mysql-test/suite/galera/t/galera_sst_mariabackup.cnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ innodb_undo_tablespaces=0
1414
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=1;pc.ignore_sb=true'
1515
innodb_fast_shutdown=0
1616
innodb_undo_tablespaces=3
17-
innodb_log_file_buffering
17+
loose_innodb_log_file_buffering
1818

1919
[sst]
2020
transferfmt=@ENV.MTR_GALERA_TFMT

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
--source include/galera_cluster.inc
66
--source include/have_innodb.inc
77

8-
if (`select version() not like '10.10.3-%'`) {
9-
skip disabled until new C/C;
10-
}
11-
128
CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY) engine=innodb;
139

1410
--connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1
@@ -26,7 +22,7 @@ SELECT * FROM t1;
2622
# Original behavior was lost connection,
2723
# but since 10.1, we allow controlling connection to remain alive
2824
#
29-
--error 0,2013
25+
--error 0,2013,2026
3026
SET GLOBAL wsrep_reject_queries = ALL_KILL;
3127

3228
--connection node_1a
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
!include ../galera_2nodes_as_master.cnf
22

33
[mysqld.1]
4-
innodb-log-file-buffering
4+
loose-innodb-log-file-buffering
55

66
[mysqld.2]
7-
innodb-log-file-buffering
7+
loose-innodb-log-file-buffering
88

99
[mysqld.3]
10-
innodb-log-file-buffering
10+
loose-innodb-log-file-buffering

mysql-test/suite/galera_sr/r/galera_sr_cc_master.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SET GLOBAL wsrep_cluster_address = '';
2727
SET SESSION wsrep_sync_wait = DEFAULT;
2828
connection node_2;
2929
INSERT INTO t1 VALUES (6);
30-
ERROR HY000: Lost connection to server during query
30+
Got one of the listed errors
3131
connection node_1;
3232
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
3333
EXPECT_0

mysql-test/suite/galera_sr/t/galera_sr_cc_master.test

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
--source include/galera_cluster.inc
22
--source include/have_innodb.inc
33

4-
if (`select version() not like '10.10.3-%'`) {
5-
skip disabled until new C/C;
6-
}
7-
84
#
95
# Test the effect of Cluster Configuration Change on a concurrently-running SR transaction
106
# We use SET GLOBAL wsrep_cluster_address = '' to cause the master (node_2) to temporarily
@@ -55,7 +51,7 @@ SET GLOBAL wsrep_cluster_address = '';
5551
SET SESSION wsrep_sync_wait = DEFAULT;
5652

5753
--connection node_2
58-
--error 2013 # CR_SERVER_LOST
54+
--error 2013,2026
5955
INSERT INTO t1 VALUES (6);
6056

6157
--connection node_1

0 commit comments

Comments
 (0)