[MDEV-7130] MASTER_POS_WAIT(log_name,log_pos,timeout,"connection_name") hangs, does not respect the timeout Created: 2014-11-18  Updated: 2015-04-24  Resolved: 2015-04-24

Status: Closed
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.0
Fix Version/s: 10.0.18

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Kristian Nielsen
Resolution: Fixed Votes: 1
Labels: multisource


 Description   

--source include/master-slave.inc
 
--enable_connect_log
 
--connection slave
 
--echo # Normal anonymous connection -- works (expected -1)
select master_pos_wait('master-bin.000001',1000000,1);
 
--source include/stop_slave.inc
reset slave all;
eval change master 'my_slave' to master_port=$MASTER_MYPORT, master_host='127.0.0.1', master_user='root';
set default_master_connection = 'my_slave';
--source include/start_slave.inc
 
--echo # Call without connection name -- works (expected -1)
select master_pos_wait('master-bin.000001',1000000,1);
 
set default_master_connection = '';
 
--echo # Call for non-existing anonymous connection -- works (expected NULL)
select master_pos_wait('master-bin.000001',1000000,1);
 
--echo # Call with a valid connection name -- hangs
select master_pos_wait('master-bin.000001',1000000,1,"my_slave");

Reproducible on the current 10.0 tree revno 4499.
Reproducible on 10.0.10 release.



 Comments   
Comment by Martin Kaluznik [ 2015-03-23 ]

https://github.com/MariaDB/server/pull/32

Comment by Kristian Nielsen [ 2015-04-24 ]

Pushed into 10.0, thanks Martin!

Generated at Thu Feb 08 07:17:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.