1CREATE TABLE t1 (f1 INTEGER);
2SET SESSION wsrep_reject_queries = ALL;
3ERROR HY000: Variable 'wsrep_reject_queries' is a GLOBAL variable and should be set with SET GLOBAL
4SET GLOBAL wsrep_reject_queries = ALL;
5SELECT * FROM t1;
6ERROR 08S01: WSREP has not yet prepared node for application use
7SET GLOBAL wsrep_reject_queries = ALL_KILL;
8ERROR HY000: Lost connection to MySQL server during query
9SELECT * FROM t1;
10ERROR HY000: Lost connection to MySQL server during query
11SELECT * FROM t1;
12ERROR 08S01: WSREP has not yet prepared node for application use
13SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
14VARIABLE_VALUE = 2
151
16INSERT INTO t1 VALUES (1);
17SET GLOBAL wsrep_reject_queries = NONE;
18SELECT COUNT(*) = 1 FROM t1;
19COUNT(*) = 1
201
21DROP TABLE t1;
22