mariadb/mysql-test/suite/sys_vars
Sujatha 43ec9370b3 MDEV-10149: sys_vars.rpl_init_slave_func fails sporadically in buildbot
problem:
========
mysqltest: In included file "./include/assert.inc":
included from mysql-test/suite/sys_vars/t/rpl_init_slave_func.test at line 69:
Assertion text: '@@global.max_connections = @start_max_connections'
Assertion result: '0'


mysqltest: In included file "./include/assert.inc":
included from mysql-test/suite/sys_vars/t/rpl_init_slave_func.test at line 86:
Assertion text: '@@global.max_connections = @start_max_connections + 1'
Assertion result: '0'

Analysis:
=========
A slave SQL thread sets its Running state to Yes very early in its
initialisation, before the majority of initialisation actions, including
executing the init_slave command, are done. Thus the testcase has a race
condition where the initial replication setup might finish executing later
than the testcase SET GLOBAL init_slave, making the testcase see its effect
where it checks for its absence.

Fix:
===
Include 'sync_slave_sql_with_master.inc' at the beginning of the test to
ensure that slave applier has completed the execution of 'init_slave' command
and proceeded to event application. Replace the apparently needless RESET
MASTER / RESET SLAVE etc.

Patch is based on:
b91e2e6f90
Author: laurynas-biveinis
2020-10-22 07:16:29 +05:30
..
inc sysvars_server_* tests need to have performance schema enabled 2020-04-13 14:22:58 +03:00
r MDEV-10149: sys_vars.rpl_init_slave_func fails sporadically in buildbot 2020-10-22 07:16:29 +05:30
t MDEV-10149: sys_vars.rpl_init_slave_func fails sporadically in buildbot 2020-10-22 07:16:29 +05:30
disabled.def MDEV-11429 Increase number of max table_open_cache instances 2016-12-02 14:05:16 +02:00