mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 16:14:30 +02:00
32 lines
1 KiB
Text
32 lines
1 KiB
Text
#
|
|
# 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;
|