@@ -50,6 +50,16 @@ select @@wsrep_gtid_domain_id,@@wsrep_node_name;
50
50
--connection node_1
51
51
--let $restart_parameters = --wsrep_new_cluster --wsrep_gtid_domain_id=200
52
52
--source include/start_mysqld.inc
53
+
54
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
55
+ --source include/wait_condition.inc
56
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
57
+ --source include/wait_condition.inc
58
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment'
59
+ --source include/wait_condition.inc
60
+
61
+ SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
62
+ SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
53
63
show variables like 'wsrep_gtid_domain_id';
54
64
55
65
#
@@ -59,8 +69,21 @@ show variables like 'wsrep_gtid_domain_id';
59
69
--let $restart_parameters =
60
70
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.2.expect
61
71
--source include/start_mysqld.inc
72
+
73
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
74
+ --source include/wait_condition.inc
75
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
76
+ --source include/wait_condition.inc
77
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment'
78
+ --source include/wait_condition.inc
79
+
80
+ SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
81
+ SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
62
82
show variables like 'wsrep_gtid_domain_id';
63
83
84
+ --connection node_1
85
+ --let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
86
+ --source include/wait_condition.inc
64
87
65
88
#
66
89
# Restart node_3, select node_2 as donor
@@ -70,9 +93,23 @@ show variables like 'wsrep_gtid_domain_id';
70
93
--let $restart_parameters = --wsrep_sst_donor="node2"
71
94
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.3.expect
72
95
--source include/start_mysqld.inc
96
+
97
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
98
+ --source include/wait_condition.inc
99
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
100
+ --source include/wait_condition.inc
101
+ --let $wait_condition = SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment'
102
+ --source include/wait_condition.inc
103
+
104
+ SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
105
+ SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
106
+
73
107
# Expect domain id 200
74
108
show variables like 'wsrep_gtid_domain_id';
75
109
110
+ --connection node_1
111
+ --let $wait_condition = SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
112
+ --source include/wait_condition.inc
76
113
77
114
#
78
115
# Cleanup
0 commit comments