Skip to content

Commit 7196691

Browse files
author
Nirbhay Choubey
committed
Fix/disable some failing galera tests.
1 parent 5db2195 commit 7196691

File tree

8 files changed

+47
-4
lines changed

8 files changed

+47
-4
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ galera_flush : mysql-wsrep/issues/229
2828
galera_transaction_read_only : mysql-wsrep/issues/229
2929
galera_gcs_fragment : Incorrect arguments to SET
3030
galera_flush_local : Fails sporadically
31-
galera_binlog_stmt_autoinc : TODO: investigate
31+
galera_binlog_stmt_autoinc : TODO: investigate
32+
galera_sst_xtrabackup-v2-options : TODO: Fix test case
33+
mysql-wsrep#33 : TODO: investigate

mysql-test/suite/galera/include/auto_increment_offset_restore.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ if ($node_3)
3232
--connection $node_3
3333
--eval SET @@global.auto_increment_offset = $auto_increment_offset_node_3;
3434
}
35+
36+
if ($node_4)
37+
{
38+
--connection $node_4
39+
--eval SET @@global.auto_increment_offset = $auto_increment_offset_node_4;
40+
}
3541
--enable_query_log

mysql-test/suite/galera/include/auto_increment_offset_save.inc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# Connection handle for 2nd node
1414
# $node_3 (optional)
1515
# Connection handle for 3rd node
16+
# $node_4 (optional)
17+
# Connection handle for 4th node
1618

1719
if (!$node_1)
1820
{
@@ -35,3 +37,9 @@ if ($node_3)
3537
let $auto_increment_offset_node_3 = `SELECT @@global.auto_increment_offset`;
3638
}
3739

40+
if ($node_4)
41+
{
42+
--connection $node_4
43+
let $auto_increment_offset_node_4 = `SELECT @@global.auto_increment_offset`;
44+
}
45+

mysql-test/suite/galera/r/galera_sst_xtrabackup-v2.result

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ INSERT INTO t1 VALUES ('node2_committed_before');
277277
INSERT INTO t1 VALUES ('node2_committed_before');
278278
INSERT INTO t1 VALUES ('node2_committed_before');
279279
COMMIT;
280-
SET GLOBAL debug = 'd,sync.alter_opened_table';
280+
SET GLOBAL debug_dbug = 'd,sync.alter_opened_table';
281281
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
282282
SET wsrep_sync_wait = 0;
283283
Killing server ...
@@ -356,3 +356,4 @@ COUNT(*) = 0
356356
DROP TABLE t1;
357357
COMMIT;
358358
SET AUTOCOMMIT=ON;
359+
SET GLOBAL debug_dbug = $debug_orig;

mysql-test/suite/galera/t/galera#414.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
--source include/big_test.inc
6+
--source include/have_innodb.inc
67
--source include/galera_cluster.inc
78

89
# We perform the shutdown/restart sequence in here. If there was a crash during shutdown, MTR will detect it

mysql-test/suite/galera/t/galera_sst_xtrabackup-v2.test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22
--source include/galera_cluster.inc
33
--source include/have_innodb.inc
44

5+
# Save original auto_increment_offset values.
6+
--let $node_1=node_1
7+
--let $node_2=node_2
8+
--source include/auto_increment_offset_save.inc
9+
510
--source suite/galera/include/galera_st_shutdown_slave.inc
611
--source suite/galera/include/galera_st_clean_slave.inc
712

813
--source suite/galera/include/galera_st_kill_slave.inc
914
--source suite/galera/include/galera_st_kill_slave_ddl.inc
15+
16+
# Restore original auto_increment_offset values.
17+
--source include/auto_increment_offset_restore.inc
18+
19+
--source include/galera_end.inc

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
--source include/galera_cluster.inc
1313
--source include/have_innodb.inc
1414

15+
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
16+
--connect node_4, 127.0.0.1, root, , test, $NODE_MYPORT_4
17+
18+
# Save original auto_increment_offset values.
19+
--let $node_1=node_1
20+
--let $node_2=node_2
21+
--let $node_3=node_3
22+
--let $node_4=node_4
23+
--source include/auto_increment_offset_save.inc
24+
1525
SELECT VARIABLE_VALUE = 4 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
1626

1727
--connection node_1
@@ -21,11 +31,9 @@ INSERT INTO t1 VALUES (1);
2131
--connection node_2
2232
INSERT INTO t1 VALUES (2);
2333

24-
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
2534
--connection node_3
2635
INSERT INTO t1 VALUES (3);
2736

28-
--connect node_4, 127.0.0.1, root, , test, $NODE_MYPORT_4
2937
--connection node_4
3038
INSERT INTO t1 VALUES (4);
3139

@@ -146,3 +154,8 @@ CALL mtr.add_suppression("Action message in non-primary configuration from membe
146154

147155
--connection node_4
148156
CALL mtr.add_suppression("Action message in non-primary configuration from member 0");
157+
158+
# Restore original auto_increment_offset values.
159+
--source include/auto_increment_offset_restore.inc
160+
161+
--source include/galera_end.inc

mysql-test/suite/galera_3nodes/disabled.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ galera_evs_suspect_timeout : TODO: investigate
33
galera_innobackupex_backup : TODO: investigate
44
galera_slave_options_do :MDEV-8798
55
galera_slave_options_ignore : MDEV-8798
6+
galera_pc_bootstrap : TODO: Investigate: Timeout in wait_condition.inc
7+
galera_pc_weight : Test times out

0 commit comments

Comments
 (0)