[MDEV-5938] Exec_master_log_pos not updated at log rotate in parallel replication Created: 2014-03-24  Updated: 2014-04-10  Resolved: 2014-04-10

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.9
Fix Version/s: 10.0.11

Type: Bug Priority: Major
Reporter: Kristian Nielsen Assignee: Kristian Nielsen
Resolution: Fixed Votes: 0
Labels: parallelslave


 Description   

It appears that Exec_master_log_pos is not correctly updated after a log
rotate when parallel replication is used.

Here is a test case:

--let $rpl_topology=1->2
--source include/rpl_init.inc
 
--connection server_2
SET @old_parallel_threads=@@GLOBAL.slave_parallel_threads;
--source include/stop_slave.inc
SET GLOBAL slave_parallel_threads=1;
--source include/start_slave.inc
 
--connection server_1
CREATE TABLE t1 (a INT PRIMARY KEY, b INT);
INSERT INTO t1 VALUES (1,1);
INSERT INTO t1 VALUES (2,2), (3,8);
INSERT INTO t1 VALUES (4,16);
--save_master_pos
 
--connection server_2
--sync_with_master
--let $status_items= Master_Log_File,Read_Master_Log_Pos,Relay_Log_File,Relay_Log_Pos,Relay_Master_Log_File,Exec_Master_Log_Pos
--source include/show_slave_status.inc
 
--connection server_1
FLUSH LOGS;
--save_master_pos
 
--connection server_2
--sync_with_master
# exec_master_log_pos is not updated here by the format description event execution
--source include/show_slave_status.inc
 
--connection server_1
UPDATE t1 SET b=b*b;
--save_master_pos
 
--connection server_2
--sync_with_master
# it's not even updated with the UPDATE statement.
--source include/show_slave_status.inc
 
 
--connection server_2
--source include/stop_slave.inc
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
--source include/start_slave.inc
 
--connection server_1
DROP TABLE t1;
 
--source include/rpl_end.inc



 Comments   
Comment by Kristian Nielsen [ 2014-04-09 ]

Pushed to 10.0

Comment by Elena Stepanova [ 2014-04-10 ]

Re-opening for a minute to amend the 'Fix version' field

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