blob: ddee3618feee924ca6c7b33cf98295af49035014 (
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
|
--source include/galera_cluster.inc
# Save original auto_increment_offset values.
--let $node_1=node_1
--let $node_2=node_2
--source include/auto_increment_offset_save.inc
--connection node_2
--let $wsrep_cluster_address_saved = `SELECT @@global.wsrep_cluster_address`
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_sst_donor = NULL;
--let $wsrep_cluster_address_orig = `SELECT @@wsrep_cluster_address`
SET @@global.wsrep_cluster_address='NULL';
SET SESSION wsrep_sync_wait=0;
SELECT @@wsrep_sst_donor;
SELECT @@wsrep_cluster_address;
# Must return 'OFF'
SHOW STATUS LIKE 'wsrep_ready';
# Must return 'Disconnected'
SHOW STATUS LIKE 'wsrep_cluster_status';
--disable_query_log
--eval SET @@global.wsrep_cluster_address = '$wsrep_cluster_address_orig'
--enable_query_log
--source include/wait_until_connected_again.inc
--source include/galera_wait_ready.inc
call mtr.add_suppression("WSREP: .*Invalid backend URI.*");
call mtr.add_suppression("WSREP: gcs connect failed: Invalid argument");
# Restore original auto_increment_offset values.
--source include/auto_increment_offset_restore.inc
--source include/galera_end.inc
|