| 1 |
# ==== Purpose ==== |
| 2 |
# |
| 3 |
# This test checks that the slave I/O thread refuses to start if slave |
| 4 |
# and master have the same server id (because this is a useless setup, |
| 5 |
# and otherwise SHOW SLAVE STATUS shows progress but all queries are |
| 6 |
# ignored, which has caught our customers). |
| 7 |
# |
| 8 |
# ==== Notes ==== |
| 9 |
# |
| 10 |
# This test was called rpl_server_id1.test prior to MySQL 5.7.5. |
| 11 |
|
| 12 |
--let $rpl_topology= 2->2 |
| 13 |
--let $rpl_skip_start_slave= 1 |
| 14 |
--source include/rpl_init.inc |
| 15 |
|
| 16 |
--connection server_2 |
| 17 |
START SLAVE; |
| 18 |
# 13117 = ER_REPLICA_FATAL_ERROR |
| 19 |
--let $slave_io_errno= 13117 |
| 20 |
--let $show_slave_io_error= 1 |
| 21 |
--source include/wait_for_slave_io_error.inc |
| 22 |
|
| 23 |
--source include/stop_slave_sql.inc |
| 24 |
RESET SLAVE; |
| 25 |
|
| 26 |
--let $rpl_only_running_threads= 1 |
| 27 |
--source include/rpl_end.inc |