| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_1; |
| 4 |
connection node_2; |
| 5 |
connection node_1; |
| 6 |
CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 INT); |
| 7 |
INSERT INTO t1 VALUES (1, 1); |
| 8 |
SET DEBUG_SYNC = "before_lock_tables_takes_lock SIGNAL sync_point_reached WAIT_FOR sync_point_continue"; |
| 9 |
UPDATE t1 SET f2 = 2 WHERE f1 = 1; |
| 10 |
connection node_1_ctrl; |
| 11 |
SET DEBUG_SYNC = "now WAIT_FOR sync_point_reached"; |
| 12 |
connection node_2; |
| 13 |
connection node_1_ctrl; |
| 14 |
# Node should be in Donor/Desynced state as node_2 has not yet joined |
| 15 |
SHOW STATUS LIKE 'wsrep_local_state_comment'; |
| 16 |
Variable_name Value |
| 17 |
wsrep_local_state_comment Donor/Desynced |
| 18 |
SET DEBUG_SYNC = "now SIGNAL sync_point_continue"; |
| 19 |
connection node_1; |
| 20 |
SET DEBUG_SYNC = "RESET"; |
| 21 |
connection node_2; |
| 22 |
connection node_1; |
| 23 |
DROP TABLE t1; |
| 24 |
disconnect node_2; |
| 25 |
disconnect node_1; |