We're updating the issue view to help you get more done. 

Multi-source: sync_with_master without the 2nd parameter always attempts to synchronize with connection '', regardless the current default_master_connection

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):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 --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

Environment

None

Status

Assignee

Michael Widenius

Reporter

Elena Stepanova

Fix versions

Affects versions

10.0.9

Priority

Minor