| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1)); |
| 4 |
INSERT INTO t1 VALUES (1, 'f'); |
| 5 |
INSERT INTO t1 VALUES (2, 'g'); |
| 6 |
connection node_1; |
| 7 |
SET AUTOCOMMIT=ON; |
| 8 |
START TRANSACTION; |
| 9 |
UPDATE t1 SET f2 = '1' WHERE f1 = 1; |
| 10 |
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1; |
| 11 |
SET SESSION wsrep_sync_wait=0; |
| 12 |
connection node_1a; |
| 13 |
SET SESSION wsrep_on = 0; |
| 14 |
SET SESSION wsrep_on = 1; |
| 15 |
SET GLOBAL wsrep_provider_options = 'dbug='; |
| 16 |
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_master_enter_sync'; |
| 17 |
connection node_1; |
| 18 |
COMMIT; |
| 19 |
connection node_1a; |
| 20 |
SET SESSION wsrep_on = 0; |
| 21 |
SET SESSION wsrep_on = 1; |
| 22 |
SET GLOBAL wsrep_provider_options = 'dbug='; |
| 23 |
connection node_2; |
| 24 |
UPDATE t1 SET f2 = '2' WHERE f1 = 2; |
| 25 |
connection node_1a; |
| 26 |
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_master_enter_sync'; |
| 27 |
SET GLOBAL wsrep_provider_options = 'dbug='; |
| 28 |
connection node_1; |
| 29 |
SELECT * FROM t1; |
| 30 |
f1 f2 |
| 31 |
1 1 |
| 32 |
2 2 |
| 33 |
"node 1 is complete now" |
| 34 |
connection node_2; |
| 35 |
DROP TABLE t1; |