|
| 1 | +include/raft_3_node.inc |
| 2 | +Warnings: |
| 3 | +Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 4 | +Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. |
| 5 | +Warnings: |
| 6 | +Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 7 | +Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. |
| 8 | +[connection master] |
| 9 | +include/rpl_connect.inc [creating server_4] |
| 10 | +include/rpl_connect.inc [creating server_5] |
| 11 | +RESET MASTER; |
| 12 | +RESET SLAVE; |
| 13 | +SET @@GLOBAL.ENABLE_RAFT_PLUGIN = 0; |
| 14 | +CHANGE MASTER TO MASTER_HOST = '::1', MASTER_PORT = SERVER_MYPORT_1, MASTER_USER = 'root', MASTER_CONNECT_RETRY = 1, MASTER_AUTO_POSITION = 1; |
| 15 | +Warnings: |
| 16 | +Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 17 | +Note 1760 Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. |
| 18 | +START SLAVE; |
| 19 | +RESET MASTER; |
| 20 | +RESET SLAVE; |
| 21 | +SET @@GLOBAL.ENABLE_RAFT_PLUGIN = 0; |
| 22 | +CHANGE MASTER TO MASTER_HOST = '::1', MASTER_PORT = SERVER_MYPORT_2, MASTER_USER = 'root', MASTER_CONNECT_RETRY = 1, MASTER_AUTO_POSITION = 1; |
| 23 | +Warnings: |
| 24 | +Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 25 | +Note 1760 Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. |
| 26 | +START SLAVE; |
| 27 | +show status like 'rpl_raft_role'; |
| 28 | +Variable_name Value |
| 29 | +Rpl_raft_role LEADER |
| 30 | +show status like 'rpl_raft_role'; |
| 31 | +Variable_name Value |
| 32 | +Rpl_raft_role FOLLOWER |
| 33 | +show status like 'rpl_raft_role'; |
| 34 | +Variable_name Value |
| 35 | +Rpl_raft_role FOLLOWER |
| 36 | +show status like 'rpl_raft_role'; |
| 37 | +Variable_name Value |
| 38 | +Rpl_raft_role |
| 39 | +show status like 'rpl_raft_role'; |
| 40 | +Variable_name Value |
| 41 | +Rpl_raft_role |
| 42 | +create table t1 (a int primary key) engine = innodb; |
| 43 | +include/sync_slave_sql_with_master.inc |
| 44 | +include/sync_slave_sql_with_master.inc |
| 45 | +include/sync_slave_sql_with_master.inc |
| 46 | +include/sync_slave_sql_with_master.inc |
| 47 | +SELECT "LOGNAME" LIKE "binary-logs%"; |
| 48 | +"LOGNAME" LIKE "binary-logs%" |
| 49 | +1 |
| 50 | +SELECT "LOGNAME" LIKE "binary-logs%"; |
| 51 | +"LOGNAME" LIKE "binary-logs%" |
| 52 | +1 |
| 53 | +insert into t1 values(1); |
| 54 | +include/sync_slave_sql_with_master.inc |
| 55 | +include/sync_slave_sql_with_master.inc |
| 56 | +include/sync_slave_sql_with_master.inc |
| 57 | +include/sync_slave_sql_with_master.inc |
| 58 | +select * from t1; |
| 59 | +a |
| 60 | +1 |
| 61 | +select * from t1; |
| 62 | +a |
| 63 | +1 |
| 64 | +select * from t1; |
| 65 | +a |
| 66 | +1 |
| 67 | +select * from t1; |
| 68 | +a |
| 69 | +1 |
| 70 | +include/raft_promote_to_leader.inc |
| 71 | +insert into t1 values(2); |
| 72 | +insert into t1 values(3); |
| 73 | +insert into t1 values(4); |
| 74 | +include/sync_slave_sql_with_master.inc |
| 75 | +include/sync_slave_sql_with_master.inc |
| 76 | +include/sync_slave_sql_with_master.inc |
| 77 | +include/sync_slave_sql_with_master.inc |
| 78 | +select * from t1; |
| 79 | +a |
| 80 | +1 |
| 81 | +2 |
| 82 | +3 |
| 83 | +4 |
| 84 | +select * from t1; |
| 85 | +a |
| 86 | +1 |
| 87 | +2 |
| 88 | +3 |
| 89 | +4 |
| 90 | +select * from t1; |
| 91 | +a |
| 92 | +1 |
| 93 | +2 |
| 94 | +3 |
| 95 | +4 |
| 96 | +select * from t1; |
| 97 | +a |
| 98 | +1 |
| 99 | +2 |
| 100 | +3 |
| 101 | +4 |
| 102 | +SELECT "LOGNAME" LIKE "binary-logs%"; |
| 103 | +"LOGNAME" LIKE "binary-logs%" |
| 104 | +1 |
| 105 | +SELECT "LOGNAME" LIKE "binary-logs%"; |
| 106 | +"LOGNAME" LIKE "binary-logs%" |
| 107 | +1 |
| 108 | +include/raft_promote_to_leader.inc |
| 109 | +flush binary logs; |
| 110 | +insert into t1 values(5); |
| 111 | +include/sync_slave_sql_with_master.inc |
| 112 | +include/sync_slave_sql_with_master.inc |
| 113 | +include/sync_slave_sql_with_master.inc |
| 114 | +include/sync_slave_sql_with_master.inc |
| 115 | +select * from t1; |
| 116 | +a |
| 117 | +1 |
| 118 | +2 |
| 119 | +3 |
| 120 | +4 |
| 121 | +5 |
| 122 | +select * from t1; |
| 123 | +a |
| 124 | +1 |
| 125 | +2 |
| 126 | +3 |
| 127 | +4 |
| 128 | +5 |
| 129 | +select * from t1; |
| 130 | +a |
| 131 | +1 |
| 132 | +2 |
| 133 | +3 |
| 134 | +4 |
| 135 | +5 |
| 136 | +select * from t1; |
| 137 | +a |
| 138 | +1 |
| 139 | +2 |
| 140 | +3 |
| 141 | +4 |
| 142 | +5 |
| 143 | +set @@global.debug='+d,dump_wait_before_find_next_log'; |
| 144 | +insert into t1 values(6); |
| 145 | +insert into t1 values(7); |
| 146 | +flush binary logs; |
| 147 | +insert into t1 values(8); |
| 148 | +insert into t1 values(9); |
| 149 | +flush binary logs; |
| 150 | +insert into t1 values(10); |
| 151 | +insert into t1 values(11); |
| 152 | +set debug_sync= 'now wait_for signal.reached'; |
| 153 | +purge raft logs to 'LOGNAME'; |
| 154 | +set debug_sync= 'now signal signal.done'; |
| 155 | +set @@global.debug='-d,dump_wait_before_find_next_log'; |
| 156 | +include/sync_slave_sql_with_master.inc |
| 157 | +include/sync_slave_sql_with_master.inc |
| 158 | +include/sync_slave_sql_with_master.inc |
| 159 | +include/sync_slave_sql_with_master.inc |
| 160 | +select * from t1; |
| 161 | +a |
| 162 | +1 |
| 163 | +2 |
| 164 | +3 |
| 165 | +4 |
| 166 | +5 |
| 167 | +6 |
| 168 | +7 |
| 169 | +8 |
| 170 | +9 |
| 171 | +10 |
| 172 | +11 |
| 173 | +select * from t1; |
| 174 | +a |
| 175 | +1 |
| 176 | +2 |
| 177 | +3 |
| 178 | +4 |
| 179 | +5 |
| 180 | +6 |
| 181 | +7 |
| 182 | +8 |
| 183 | +9 |
| 184 | +10 |
| 185 | +11 |
| 186 | +select * from t1; |
| 187 | +a |
| 188 | +1 |
| 189 | +2 |
| 190 | +3 |
| 191 | +4 |
| 192 | +5 |
| 193 | +6 |
| 194 | +7 |
| 195 | +8 |
| 196 | +9 |
| 197 | +10 |
| 198 | +11 |
| 199 | +select * from t1; |
| 200 | +a |
| 201 | +1 |
| 202 | +2 |
| 203 | +3 |
| 204 | +4 |
| 205 | +5 |
| 206 | +6 |
| 207 | +7 |
| 208 | +8 |
| 209 | +9 |
| 210 | +10 |
| 211 | +11 |
| 212 | +include/stop_slave.inc |
| 213 | +include/rpl_restart_server.inc [server_number=2] |
| 214 | +include/rpl_restart_server.inc [server_number=1] |
| 215 | +include/raft_promote_to_leader.inc |
| 216 | +START SLAVE IO_THREAD; |
| 217 | +START SLAVE IO_THREAD; |
| 218 | +insert into t1 values(12); |
| 219 | +include/sync_slave_sql_with_master.inc |
| 220 | +include/sync_slave_sql_with_master.inc |
| 221 | +include/sync_slave_sql_with_master.inc |
| 222 | +include/sync_slave_sql_with_master.inc |
| 223 | +select * from t1; |
| 224 | +a |
| 225 | +1 |
| 226 | +2 |
| 227 | +3 |
| 228 | +4 |
| 229 | +5 |
| 230 | +6 |
| 231 | +7 |
| 232 | +8 |
| 233 | +9 |
| 234 | +10 |
| 235 | +11 |
| 236 | +12 |
| 237 | +select * from t1; |
| 238 | +a |
| 239 | +1 |
| 240 | +2 |
| 241 | +3 |
| 242 | +4 |
| 243 | +5 |
| 244 | +6 |
| 245 | +7 |
| 246 | +8 |
| 247 | +9 |
| 248 | +10 |
| 249 | +11 |
| 250 | +12 |
| 251 | +select * from t1; |
| 252 | +a |
| 253 | +1 |
| 254 | +2 |
| 255 | +3 |
| 256 | +4 |
| 257 | +5 |
| 258 | +6 |
| 259 | +7 |
| 260 | +8 |
| 261 | +9 |
| 262 | +10 |
| 263 | +11 |
| 264 | +12 |
| 265 | +select * from t1; |
| 266 | +a |
| 267 | +1 |
| 268 | +2 |
| 269 | +3 |
| 270 | +4 |
| 271 | +5 |
| 272 | +6 |
| 273 | +7 |
| 274 | +8 |
| 275 | +9 |
| 276 | +10 |
| 277 | +11 |
| 278 | +12 |
| 279 | +drop table t1; |
| 280 | +include/sync_slave_sql_with_master.inc |
| 281 | +include/sync_slave_sql_with_master.inc |
| 282 | +include/sync_slave_sql_with_master.inc |
| 283 | +include/sync_slave_sql_with_master.inc |
| 284 | +stop slave; |
| 285 | +reset slave all; |
| 286 | +stop slave; |
| 287 | +reset slave all; |
| 288 | +include/rpl_end.inc |
0 commit comments