Test rpl.rpl_init_slave_errors is unstable

Bug #1644174 reported by Laurynas Biveinis on 2016-11-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Fix Released
Low
Laurynas Biveinis
5.6
Fix Released
Low
Yura Sorokin
5.7
Invalid
Undecided
Unassigned

Bug Description

On 5.5 trunk:

rpl.rpl_init_slave_errors 'stmt' w1 [ fail ]
        Test ended at 2016-11-18 07:57:42

CURRENT_TEST: rpl.rpl_init_slave_errors
mysqltest: At line 70: query 'reset slave' failed: 1198: This operation cannot be performed with a running slave; run STOP SLAVE first

The result from queries just before the failure was:
include/master-slave.inc
[connection master]
stop slave;
reset slave;
SET GLOBAL debug= "d,simulate_io_slave_error_on_init,simulate_sql_slave_error_on_init";
start slave;
include/wait_for_slave_sql_error.inc [errno=1593]
Last_SQL_Error = 'Failed during slave thread initialization'
call mtr.add_suppression("Failed during slave.* thread initialization");
SET GLOBAL debug= "";
safe_process[30022]: Child process: 30023, exit: 1

The reason is race between slave I/O thread failing and RESET SLAVE execution. Fix by backporting I/O thread stopping sync from higher versions.

tags: added: ci upstream

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3604

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers