Commit a401c11c authored by Nirbhay Choubey's avatar Nirbhay Choubey

Fix failing test cases

* Also modified name regex to include '#' as a valid symbol for
tests under disabled.def.
parent ceac3440
...@@ -321,7 +321,7 @@ sub parse_disabled { ...@@ -321,7 +321,7 @@ sub parse_disabled {
chomp; chomp;
next if /^\s*#/ or /^\s*$/; next if /^\s*#/ or /^\s*$/;
mtr_error("Syntax error in $filename line $.") mtr_error("Syntax error in $filename line $.")
unless /^\s*(?:([-0-9A-Za-z_\/]+)\.)?([-0-9A-Za-z_]+)\s*:\s*(.*?)\s*$/; unless /^\s*(?:([-0-9A-Za-z_\/]+)\.)?([-0-9A-Za-z_#]+)\s*:\s*(.*?)\s*$/;
mtr_error("Wrong suite name in $filename line $.") mtr_error("Wrong suite name in $filename line $.")
if defined $1 and defined $suitename and $1 ne $suitename; if defined $1 and defined $suitename and $1 ne $suitename;
$disabled{($1 || $suitename || '') . ".$2"} = $3; $disabled{($1 || $suitename || '') . ".$2"} = $3;
......
...@@ -19,3 +19,9 @@ galera_var_auto_inc_control_on : Failing sporadically with content mismatch ...@@ -19,3 +19,9 @@ galera_var_auto_inc_control_on : Failing sporadically with content mismatch
galera_parallel_simple : Failing sporadically galera_parallel_simple : Failing sporadically
galera_bf_abort : Failing sporadically galera_bf_abort : Failing sporadically
galera_log_output_csv : Failing sporadically galera_log_output_csv : Failing sporadically
galera_as_slave_preordered : wsrep-preordered is not available in MariaDB Galera cluster
galera_forced_binlog_format : TODO: investigate
galera_gra_log : TODO: investigate
galera_as_slave_replication_bundle : TODO: investigate
galera_ssl_upgrade : TODO: investigate
mysql-wsrep#90 : TODO: investigate
...@@ -17,6 +17,9 @@ server-id=1 ...@@ -17,6 +17,9 @@ server-id=1
#ist_port=@OPT.port #ist_port=@OPT.port
#sst_port=@OPT.port #sst_port=@OPT.port
log-bin
log-slave-updates
innodb-autoinc-lock-mode=2 innodb-autoinc-lock-mode=2
default-storage-engine=innodb default-storage-engine=innodb
wsrep-provider=@ENV.WSREP_PROVIDER wsrep-provider=@ENV.WSREP_PROVIDER
...@@ -36,6 +39,9 @@ server-id=2 ...@@ -36,6 +39,9 @@ server-id=2
#ist_port=@OPT.port #ist_port=@OPT.port
#sst_port=@OPT.port #sst_port=@OPT.port
log-bin
log-slave-updates
innodb-autoinc-lock-mode=2 innodb-autoinc-lock-mode=2
default-storage-engine=innodb default-storage-engine=innodb
wsrep-provider=@ENV.WSREP_PROVIDER wsrep-provider=@ENV.WSREP_PROVIDER
......
...@@ -26,7 +26,7 @@ COUNT(*) = 1 ...@@ -26,7 +26,7 @@ COUNT(*) = 1
ALTER TABLE t1 ADD COLUMN f2 INTEGER; ALTER TABLE t1 ADD COLUMN f2 INTEGER;
ALTER TABLE t1 DROP COLUMN f1; ALTER TABLE t1 DROP COLUMN f1;
EXECUTE st1; EXECUTE st1;
ERROR HY000: Incorrect integer value: 'abc' for column 'f2' at row 1 ERROR 22007: Incorrect integer value: 'abc' for column 'f2' at row 1
DROP TABLE t1; DROP TABLE t1;
DROP TABLE t2; DROP TABLE t2;
DROP TABLE t3; DROP TABLE t3;
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
# #
--source include/have_innodb.inc --source include/have_innodb.inc
--source include/have_log_bin.inc
# As node #1 is not a Galera node, we connect to node #2 in order to run include/galera_cluster.inc # As node #1 is not a Galera node, we connect to node #2 in order to run include/galera_cluster.inc
--connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2 --connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2
...@@ -13,9 +12,9 @@ ...@@ -13,9 +12,9 @@
--connection node_2 --connection node_2
--disable_query_log --disable_query_log
--eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=$NODE_MYPORT_1; --eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_1;
--enable_query_log --enable_query_log
START SLAVE USER='root'; START SLAVE;
--connection node_1 --connection node_1
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB; CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# #
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_innodb.inc
CREATE TABLE t1 (f1 CHAR(5)) ENGINE=InnoDB; CREATE TABLE t1 (f1 CHAR(5)) ENGINE=InnoDB;
CREATE TABLE t2 (f1 CHAR(5)) ENGINE=InnoDB; CREATE TABLE t2 (f1 CHAR(5)) ENGINE=InnoDB;
......
...@@ -22,7 +22,7 @@ INSERT INTO t1 VALUES (1); ...@@ -22,7 +22,7 @@ INSERT INTO t1 VALUES (1);
--let $galera_server_number = 2 --let $galera_server_number = 2
--source include/galera_connect.inc --source include/galera_connect.inc
--connection node_2a --connection node_2a
--source include/galera_wait_ready.inc --source include/wait_until_ready.inc
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) = 1 FROM t1;
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
......
!include ../galera_2nodes.cnf !include ../galera_2nodes.cnf
[mysqld.1] [mysqld]
log-bin=log1 log-bin
[mysqld.2]
log-bin=log2
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
# when MySQL's binlog is in effect rather than the Galera 'dummy' implementation. # when MySQL's binlog is in effect rather than the Galera 'dummy' implementation.
# #
--source include/have_binlog_format_row.inc
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_innodb.inc
CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB; CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;
......
galera_garbd : Fix the test case galera_garbd : Fix the test case
galera_evs_suspect_timeout : TODO: investigate galera_evs_suspect_timeout : TODO: investigate
galera_innobackupex_backup : TODO: investigate
galera_slave_options_do :MDEV-8798
galera_slave_options_ignore : MDEV-8798
...@@ -15,6 +15,3 @@ SELECT COUNT(*) = 2 FROM t1; ...@@ -15,6 +15,3 @@ SELECT COUNT(*) = 2 FROM t1;
COUNT(*) = 2 COUNT(*) = 2
1 1
DROP TABLE t1; DROP TABLE t1;
CALL mtr.add_suppression("SYNC message from member 1 in non-primary configuration");
CALL mtr.add_suppression("SYNC message from member 1 in non-primary configuration");
CALL mtr.add_suppression("SYNC message from member 1 in non-primary configuration");
...@@ -42,6 +42,7 @@ push @::global_suppressions, ...@@ -42,6 +42,7 @@ push @::global_suppressions,
qr|WSREP: Ignoring possible split-brain (allowed by configuration) from view:.*|, qr|WSREP: Ignoring possible split-brain (allowed by configuration) from view:.*|,
qr(WSREP: Could not find peer:), qr(WSREP: Could not find peer:),
qr(WSREP: Protocol violation. JOIN message sender .*), qr(WSREP: Protocol violation. JOIN message sender .*),
qr(WSREP: JOIN message from member [0-9]* in non-primary configuration. Ignored.),
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment