| 1 |
--source include/galera_cluster.inc |
| 2 |
--source include/have_innodb.inc |
| 3 |
|
| 4 |
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3 |
| 5 |
|
| 6 |
# Save original auto_increment_offset values. |
| 7 |
--let $node_1=node_1 |
| 8 |
--let $node_2=node_2 |
| 9 |
--LET $node_3=node_3 |
| 10 |
--source ../galera/include/auto_increment_offset_save.inc |
| 11 |
|
| 12 |
--connection node_1 |
| 13 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB; |
| 14 |
|
| 15 |
--connection node_2 |
| 16 |
--source include/shutdown_mysqld.inc |
| 17 |
|
| 18 |
--connection node_1 |
| 19 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 20 |
--source include/wait_condition.inc |
| 21 |
|
| 22 |
--connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 23 |
--connection node_1b |
| 24 |
SET SESSION wsrep_trx_fragment_size = 1; |
| 25 |
SET AUTOCOMMIT=OFF; |
| 26 |
START TRANSACTION; |
| 27 |
|
| 28 |
INSERT INTO t1 VALUES (1); |
| 29 |
INSERT INTO t1 VALUES (2); |
| 30 |
INSERT INTO t1 VALUES (3); |
| 31 |
INSERT INTO t1 VALUES (4); |
| 32 |
INSERT INTO t1 VALUES (5); |
| 33 |
|
| 34 |
--connection node_2 |
| 35 |
--source include/start_mysqld.inc |
| 36 |
--source include/wait_until_connected_again.inc |
| 37 |
--source include/galera_wait_ready.inc |
| 38 |
|
| 39 |
SELECT COUNT(*) FROM mysql.wsrep_streaming_log; |
| 40 |
|
| 41 |
--connection node_1 |
| 42 |
SELECT COUNT(*) FROM mysql.wsrep_streaming_log; |
| 43 |
COMMIT; |
| 44 |
SELECT COUNT(*) FROM t1; |
| 45 |
|
| 46 |
--connection node_2 |
| 47 |
SELECT COUNT(*) FROM t1; |
| 48 |
|
| 49 |
DROP TABLE t1; |
| 50 |
|
| 51 |
--disconnect node_1b |
| 52 |
--source ../galera/include/auto_increment_offset_restore.inc |