Debian Codegraph @

mysql-test/suite/wsrep/t/wsrep_provider_plugin.test

raw
1 #
2 # Verify that system variables can be modified via wsrep_provider
3 # plugin and wsrep_provider/wsrep_provider_options cannot be modified.
4 #
5
6 --source include/have_wsrep.inc
7 --source include/have_innodb.inc
8
9 --let $galera_version=26.4.26
10 source include/check_galera_version.inc;
11
12 CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;
13
14 SET GLOBAL wsrep_provider_repl_max_ws_size=1;
15 SHOW VARIABLES LIKE 'wsrep_provider_repl_max_ws_size';
16
17 --error ER_UNKNOWN_ERROR
18 INSERT INTO t1 VALUES (1);
19
20 SET GLOBAL wsrep_provider_repl_max_ws_size=DEFAULT;
21 SHOW VARIABLES LIKE 'wsrep_provider_repl_max_ws_size';
22
23 INSERT INTO t1 VALUES (1);
24
25 # Variable should be read only, must not take effect
26 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
27 SET GLOBAL wsrep_provider_options='repl.max_ws_size=1';
28 INSERT INTO t1 VALUES (2);
29
30 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
31 SET GLOBAL wsrep_provider='none';
32
33 DROP TABLE t1;
34
35 CALL mtr.add_suppression("transaction size limit");
36 CALL mtr.add_suppression("rbr write fail");
37
38 #
39 # MDEV-30120 :Update the wsrep_provider_options read_only value in the system_variables table.
40 #
41 SELECT VARIABLE_NAME,READ_ONLY FROM information_schema.system_variables where VARIABLE_NAME like '%wsrep_provider_options%';