summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/galera/t/galera_var_node_address.test
blob: 99cb30e7b91c0f88a07b931ea399b5b21f588237 (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
#
# Test wsrep_node_address . The galera_var_node_address.cnf contains various settings for
# wsrep_node_address, so in this test we simply confirm that the cluster has started up correctly.
#

--source include/galera_cluster.inc
--source include/have_innodb.inc

call  mtr.add_suppression("WSREP: Stray state UUID msg: .*");
call  mtr.add_suppression("WSREP: Protocol violation. JOIN message sender .*");
call  mtr.add_suppression("WSREP: Sending JOIN failed: .*");
flush tables;

--let $wait_condition = SELECT VARIABLE_VALUE = 4 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
--source include/wait_condition.inc

SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';

--connection node_1
CREATE TABLE t1 (f1 INTEGER) ENGINE=INNODB;

--connection node_2
set global wsrep_sync_wait=15;
INSERT INTO t1 VALUES (1);

--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
--connection node_3
set global wsrep_sync_wait=15;
SELECT COUNT(*) FROM t1;

--connection node_1
DROP TABLE t1;