Skip to content

Commit 33028f7

Browse files
philip-galeraJan Lindström
authored andcommitted
Refs: MW-245 - Adjust tests to account for the new behavior.
1 parent 9a89614 commit 33028f7

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ SET @@session.wsrep_dirty_reads=OFF;
3030
SELECT i, variable_name, variable_value FROM t1, information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads" AND i = 1;
3131
ERROR 08S01: WSREP has not yet prepared node for application use
3232
SELECT 1;
33-
1
34-
1
33+
ERROR 08S01: WSREP has not yet prepared node for application use
3534
USE information_schema;
35+
ERROR 08S01: WSREP has not yet prepared node for application use
3636
SELECT * FROM information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads";
3737
VARIABLE_NAME VARIABLE_VALUE
3838
WSREP_DIRTY_READS OFF

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ERROR 08S01: WSREP has not yet prepared node for application use
77
SET GLOBAL wsrep_reject_queries = ALL_KILL;
88
ERROR HY000: Lost connection to MySQL server during query
99
SELECT * FROM t1;
10-
ERROR 70100: Connection was killed
10+
Got one of the listed errors
1111
SELECT * FROM t1;
1212
ERROR 08S01: WSREP has not yet prepared node for application use
1313
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
5151
--let $value = query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1)
5252
--connection node_3
5353
--disable_query_log
54-
--eval SELECT "$value" IN ("Error 'Unknown command' on query. Default database: 'test'. Query: 'BEGIN'", "Node has dropped from cluster") AS expected_error
54+
--eval SELECT "$value" IN ("Error 'WSREP has not yet prepared node for application use' on query. Default database: 'test'. Query: 'BEGIN'", "Node has dropped from cluster") AS expected_error
5555
--enable_query_log
5656

5757
# Step #4. Bring back the async slave and restart replication
@@ -85,8 +85,9 @@ DROP TABLE t1;
8585
STOP SLAVE;
8686
RESET SLAVE ALL;
8787

88-
CALL mtr.add_suppression("Slave SQL: Error 'Unknown command' on query");
89-
CALL mtr.add_suppression("Slave: Unknown command Error_code: 1047");
88+
CALL mtr.add_suppression("Slave SQL: Error 'WSREP has not yet prepared node for application use' on query");
89+
CALL mtr.add_suppression("Slave: WSREP has not yet prepared node for application use Error_code: 1047");
90+
CALL mtr.add_suppression("TORDERED} returned -107 \\(Transport endpoint is not connected\\)");
9091
CALL mtr.add_suppression("Transport endpoint is not connected");
9192
CALL mtr.add_suppression("Slave SQL: Error in Xid_log_event: Commit could not be completed, 'Deadlock found when trying to get lock; try restarting transaction', Error_code: 1213");
9293
CALL mtr.add_suppression("Slave SQL: Node has dropped from cluster, Error_code: 1047");

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ SET @@session.wsrep_dirty_reads=OFF;
4747
--error ER_UNKNOWN_COM_ERROR
4848
SELECT i, variable_name, variable_value FROM t1, information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads" AND i = 1;
4949

50+
--error ER_UNKNOWN_COM_ERROR
5051
SELECT 1;
5152

53+
--error ER_UNKNOWN_COM_ERROR
5254
USE information_schema;
5355

5456
SELECT * FROM information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SELECT * FROM t1;
2323
SET GLOBAL wsrep_reject_queries = ALL_KILL;
2424

2525
--connection node_1a
26-
--error ER_CONNECTION_KILLED
26+
--error ER_CONNECTION_KILLED,2013
2727
SELECT * FROM t1;
2828

2929
--connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1

0 commit comments

Comments
 (0)