mirror of
https://github.com/MariaDB/server.git
synced 2026-01-10 05:24:49 +01:00
Test case changes only. Replace sleep with wait_condition that makes sure that node_1 is still Donor after node_2 has requested SST and is actually stuck on debug sync wait.
25 lines
794 B
Text
25 lines
794 B
Text
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
connection node_2;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 INT);
|
|
INSERT INTO t1 VALUES (1, 1);
|
|
SET DEBUG_SYNC = "before_lock_tables_takes_lock SIGNAL sync_point_reached WAIT_FOR sync_point_continue";
|
|
UPDATE t1 SET f2 = 2 WHERE f1 = 1;
|
|
connection node_1_ctrl;
|
|
SET DEBUG_SYNC = "now WAIT_FOR sync_point_reached";
|
|
connection node_2;
|
|
connection node_1_ctrl;
|
|
# Node should be in Donor/Desynced state as node_2 has not yet joined
|
|
SHOW STATUS LIKE 'wsrep_local_state_comment';
|
|
Variable_name Value
|
|
wsrep_local_state_comment Donor/Desynced
|
|
SET DEBUG_SYNC = "now SIGNAL sync_point_continue";
|
|
connection node_1;
|
|
SET DEBUG_SYNC = "RESET";
|
|
connection node_2;
|
|
connection node_1;
|
|
DROP TABLE t1;
|
|
disconnect node_2;
|
|
disconnect node_1;
|