Skip to content

Commit

Permalink
Refs: MW-245 - Adjust tests to account for the new behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-galera authored and Jan Lindström committed Mar 20, 2018
1 parent 9a89614 commit 33028f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mysql-test/suite/galera/r/galera_var_dirty_reads.result
Expand Up @@ -30,9 +30,9 @@ SET @@session.wsrep_dirty_reads=OFF;
SELECT i, variable_name, variable_value FROM t1, information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads" AND i = 1;
ERROR 08S01: WSREP has not yet prepared node for application use
SELECT 1;
1
1
ERROR 08S01: WSREP has not yet prepared node for application use
USE information_schema;
ERROR 08S01: WSREP has not yet prepared node for application use
SELECT * FROM information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads";
VARIABLE_NAME VARIABLE_VALUE
WSREP_DIRTY_READS OFF
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/galera/r/galera_var_reject_queries.result
Expand Up @@ -7,7 +7,7 @@ ERROR 08S01: WSREP has not yet prepared node for application use
SET GLOBAL wsrep_reject_queries = ALL_KILL;
ERROR HY000: Lost connection to MySQL server during query
SELECT * FROM t1;
ERROR 70100: Connection was killed
Got one of the listed errors
SELECT * FROM t1;
ERROR 08S01: WSREP has not yet prepared node for application use
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
Expand Down
7 changes: 4 additions & 3 deletions mysql-test/suite/galera/t/galera_as_slave_nonprim.test
Expand Up @@ -51,7 +51,7 @@ INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
--let $value = query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1)
--connection node_3
--disable_query_log
--eval SELECT "$value" IN ("Error 'Unknown command' on query. Default database: 'test'. Query: 'BEGIN'", "Node has dropped from cluster") AS expected_error
--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
--enable_query_log

# Step #4. Bring back the async slave and restart replication
Expand Down Expand Up @@ -85,8 +85,9 @@ DROP TABLE t1;
STOP SLAVE;
RESET SLAVE ALL;

CALL mtr.add_suppression("Slave SQL: Error 'Unknown command' on query");
CALL mtr.add_suppression("Slave: Unknown command Error_code: 1047");
CALL mtr.add_suppression("Slave SQL: Error 'WSREP has not yet prepared node for application use' on query");
CALL mtr.add_suppression("Slave: WSREP has not yet prepared node for application use Error_code: 1047");
CALL mtr.add_suppression("TORDERED} returned -107 \\(Transport endpoint is not connected\\)");
CALL mtr.add_suppression("Transport endpoint is not connected");
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");
CALL mtr.add_suppression("Slave SQL: Node has dropped from cluster, Error_code: 1047");
Expand Down
2 changes: 2 additions & 0 deletions mysql-test/suite/galera/t/galera_var_dirty_reads.test
Expand Up @@ -47,8 +47,10 @@ SET @@session.wsrep_dirty_reads=OFF;
--error ER_UNKNOWN_COM_ERROR
SELECT i, variable_name, variable_value FROM t1, information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads" AND i = 1;

--error ER_UNKNOWN_COM_ERROR
SELECT 1;

--error ER_UNKNOWN_COM_ERROR
USE information_schema;

SELECT * FROM information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads";
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/galera/t/galera_var_reject_queries.test
Expand Up @@ -23,7 +23,7 @@ SELECT * FROM t1;
SET GLOBAL wsrep_reject_queries = ALL_KILL;

--connection node_1a
--error ER_CONNECTION_KILLED
--error ER_CONNECTION_KILLED,2013
SELECT * FROM t1;

--connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1
Expand Down

0 comments on commit 33028f7

Please sign in to comment.