Details
-
Task
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
sync_with_master, if it's called without the explicit connection name, always attempts to execute master_pos_wait(binlog, position, timeout, ''), even if default_master_connection is set to something other than ''. It causes the command and the entire test fail if there is no '' connection, and can lead to more subtle problems if there is the connection, since the synchronization won't work as expected.
10.0-base revno 3438
Test case (you need to pull the revision as mentioned above to run the test, since it uses the new include file only introduced in this revision):
--connect (slave,127.0.0.1,root,,,$SERVER_MYPORT_3)
|
|
set default_master_connection = 'm1';
|
|
--replace_result $SERVER_MYPORT_1 MYPORT_1
|
eval change master to
|
master_port=$SERVER_MYPORT_1,
|
master_host='127.0.0.1',
|
master_user='root';
|
|
start slave;
|
--source include/wait_for_slave_to_start.inc
|
|
--connect (master1,127.0.0.1,root,,,$SERVER_MYPORT_1)
|
--save_master_pos
|
|
--connection slave
|
--sync_with_master
|
|
# Cleanup
|
|
--source reset_master_slave.inc
|
--disconnect slave
|
|
--connection master1
|
--source reset_master_slave.inc
|
--disconnect master1
|