summaryrefslogtreecommitdiff
path: root/mysql-test/suite/wsrep/r/variables.result
blob: db5ce3d2a779a4c28174223ec6cdd30f60d044b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
SET @wsrep_provider_options_saved= @@global.wsrep_provider_options;
SET @wsrep_cluster_address_saved= @@global.wsrep_cluster_address;

# MDEV#5534: mysql_tzinfo_to_sql generates wrong query
#
# Testing wsrep_replicate_myisam variable.
SELECT @@session.wsrep_replicate_myisam;
ERROR HY000: Variable 'wsrep_replicate_myisam' is a GLOBAL variable
SELECT @@global.wsrep_replicate_myisam;
@@global.wsrep_replicate_myisam
0
SET SESSION wsrep_replicate_myisam= ON;
ERROR HY000: Variable 'wsrep_replicate_myisam' is a GLOBAL variable and should be set with SET GLOBAL
SET GLOBAL wsrep_replicate_myisam= ON;
SET GLOBAL wsrep_replicate_myisam= OFF;
SET GLOBAL wsrep_provider=none;
#
# MDEV#5790: SHOW GLOBAL STATUS LIKE does not show the correct list of
# variables when using "_"
#
CALL mtr.add_suppression("WSREP: Could not open saved state file for reading.*");
SHOW GLOBAL STATUS LIKE 'wsrep%';
Variable_name	Value
wsrep_local_state_uuid	#
wsrep_protocol_version	#
wsrep_last_committed	#
wsrep_replicated	#
wsrep_replicated_bytes	#
wsrep_repl_keys	#
wsrep_repl_keys_bytes	#
wsrep_repl_data_bytes	#
wsrep_repl_other_bytes	#
wsrep_received	#
wsrep_received_bytes	#
wsrep_local_commits	#
wsrep_local_cert_failures	#
wsrep_local_replays	#
wsrep_local_send_queue	#
wsrep_local_send_queue_max	#
wsrep_local_send_queue_min	#
wsrep_local_send_queue_avg	#
wsrep_local_recv_queue	#
wsrep_local_recv_queue_max	#
wsrep_local_recv_queue_min	#
wsrep_local_recv_queue_avg	#
wsrep_local_cached_downto	#
wsrep_flow_control_paused_ns	#
wsrep_flow_control_paused	#
wsrep_flow_control_sent	#
wsrep_flow_control_recv	#
wsrep_cert_deps_distance	#
wsrep_apply_oooe	#
wsrep_apply_oool	#
wsrep_apply_window	#
wsrep_commit_oooe	#
wsrep_commit_oool	#
wsrep_commit_window	#
wsrep_local_state	#
wsrep_local_state_comment	#
wsrep_cert_index_size	#
wsrep_causal_reads	#
wsrep_cert_interval	#
wsrep_open_transactions	#
wsrep_open_connections	#
wsrep_incoming_addresses	#
wsrep_applier_thread_count	#
wsrep_cluster_capabilities	#
wsrep_cluster_conf_id	#
wsrep_cluster_size	#
wsrep_cluster_state_uuid	#
wsrep_cluster_status	#
wsrep_connected	#
wsrep_local_bf_aborts	#
wsrep_local_index	#
wsrep_provider_capabilities	#
wsrep_provider_name	#
wsrep_provider_vendor	#
wsrep_provider_version	#
wsrep_ready	#
wsrep_rollbacker_thread_count	#
wsrep_thread_count	#

SHOW GLOBAL STATUS LIKE 'wsrep_%';
Variable_name	Value
wsrep_local_state_uuid	#
wsrep_protocol_version	#
wsrep_last_committed	#
wsrep_replicated	#
wsrep_replicated_bytes	#
wsrep_repl_keys	#
wsrep_repl_keys_bytes	#
wsrep_repl_data_bytes	#
wsrep_repl_other_bytes	#
wsrep_received	#
wsrep_received_bytes	#
wsrep_local_commits	#
wsrep_local_cert_failures	#
wsrep_local_replays	#
wsrep_local_send_queue	#
wsrep_local_send_queue_max	#
wsrep_local_send_queue_min	#
wsrep_local_send_queue_avg	#
wsrep_local_recv_queue	#
wsrep_local_recv_queue_max	#
wsrep_local_recv_queue_min	#
wsrep_local_recv_queue_avg	#
wsrep_local_cached_downto	#
wsrep_flow_control_paused_ns	#
wsrep_flow_control_paused	#
wsrep_flow_control_sent	#
wsrep_flow_control_recv	#
wsrep_cert_deps_distance	#
wsrep_apply_oooe	#
wsrep_apply_oool	#
wsrep_apply_window	#
wsrep_commit_oooe	#
wsrep_commit_oool	#
wsrep_commit_window	#
wsrep_local_state	#
wsrep_local_state_comment	#
wsrep_cert_index_size	#
wsrep_causal_reads	#
wsrep_cert_interval	#
wsrep_open_transactions	#
wsrep_open_connections	#
wsrep_incoming_addresses	#
wsrep_applier_thread_count	#
wsrep_cluster_capabilities	#
wsrep_cluster_conf_id	#
wsrep_cluster_size	#
wsrep_cluster_state_uuid	#
wsrep_cluster_status	#
wsrep_connected	#
wsrep_local_bf_aborts	#
wsrep_local_index	#
wsrep_provider_capabilities	#
wsrep_provider_name	#
wsrep_provider_vendor	#
wsrep_provider_version	#
wsrep_ready	#
wsrep_rollbacker_thread_count	#
wsrep_thread_count	#
SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment';
Variable_name	Value
wsrep_local_state_comment	#
# Should show nothing.
SHOW STATUS LIKE 'x';
Variable_name	Value
SET GLOBAL wsrep_provider=none;

SHOW STATUS LIKE 'wsrep_local_state_uuid';
Variable_name	Value
wsrep_local_state_uuid	#

SHOW STATUS LIKE 'wsrep_last_committed';
Variable_name	Value
wsrep_last_committed	#
SET GLOBAL wsrep_provider=none;

#
# MDEV#6206: wsrep_slave_threads subtracts from max_connections
#
call mtr.add_suppression("WSREP: Failed to get provider options");
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
/usr/lib/libgalera_4_smm.so
SELECT @@global.wsrep_slave_threads;
@@global.wsrep_slave_threads
1
SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address

SELECT @@global.wsrep_on;
@@global.wsrep_on
1
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	1
SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name	Value
wsrep_thread_count	0

SELECT @@global.wsrep_provider;
@@global.wsrep_provider
/usr/lib/libgalera_4_smm.so
SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address

SELECT @@global.wsrep_on;
@@global.wsrep_on
1
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	1
SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name	Value
wsrep_thread_count	0

# Setting wsrep_cluster_address triggers the creation of
# applier/rollbacker threads.
SET GLOBAL wsrep_cluster_address= 'gcomm://';
# Wait for applier thread to get created 1.
# Wait for applier thread to get created 2.
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
EXPECT_2
2
SELECT @@global.wsrep_provider;
@@global.wsrep_provider
/usr/lib/libgalera_4_smm.so
SELECT @@global.wsrep_cluster_address;
@@global.wsrep_cluster_address
gcomm://
SELECT @@global.wsrep_on;
@@global.wsrep_on
1
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	1
SHOW STATUS LIKE 'wsrep_thread_count';
Variable_name	Value
wsrep_thread_count	2

SET @wsrep_slave_threads_saved= @@global.wsrep_slave_threads;
SET GLOBAL wsrep_slave_threads= 10;
# Wait for 9 applier threads to get created.
SELECT VARIABLE_VALUE AS EXPECT_10 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_applier_thread_count';
EXPECT_10
10
SELECT VARIABLE_VALUE AS EXPECT_1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_rollbacker_thread_count';
EXPECT_1
1
SELECT VARIABLE_VALUE AS EXPECT_11 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_thread_count';
EXPECT_11
11
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	1
set wsrep_on=0;
set wsrep_on=1;
create user test@localhost;
connect con1,localhost,test;
set auto_increment_increment=10;
set wsrep_on=0;
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
disconnect con1;
connection default;
drop user test@localhost;
#
# MDEV#6411: Setting set @@global.wsrep_sst_auth=NULL causes crash
#
SET @wsrep_sst_auth_saved= @@global.wsrep_sst_auth;
SET @@global.wsrep_sst_auth= 'user:pass';
SELECT @@global.wsrep_sst_auth;
@@global.wsrep_sst_auth
********
SET @@global.wsrep_sst_auth= '';
SELECT @@global.wsrep_sst_auth;
@@global.wsrep_sst_auth

SET @@global.wsrep_sst_auth= NULL;
SELECT @@global.wsrep_sst_auth;
@@global.wsrep_sst_auth
NULL
SET @@global.wsrep_sst_auth= @wsrep_sst_auth_saved;
SET GLOBAL wsrep_slave_threads= @wsrep_slave_threads_saved;
SET GLOBAL wsrep_cluster_address= @wsrep_cluster_address_saved;
SET GLOBAL wsrep_provider_options= @wsrep_provider_options_saved;
# End of test.