mariadb/mysql-test/suite
Sujatha Sivakumar e619295e1b Bug#24901077: RESET SLAVE ALL DOES NOT ALWAYS RESET SLAVE
Description:
============
If you have a relay log index file that has ended up with
some relay log files that do not exists, then RESET SLAVE
ALL is not enough to get back to a clean state.

Analysis:
=========
In the bug scenario slave server is in stopped state and
some of the relay logs got deleted but the relay log index
file is not updated.

During slave server restart replication initialization fails
as some of the required relay logs are missing. User
executes RESET SLAVE/RESET SLAVE ALL command to start a
clean slave. As per the documentation RESET SLAVE command
clears the master info and relay log info repositories,
deletes all the relay log files, and starts a new relay log
file. But in a scenario where the slave server's
Relay_log_info object is not initialized slave will not
purge the existing relay logs. Hence the index file still
remains in a bad state. Users will not be able to start
the slave unless these files are cleared.

Fix:
===
RESET SLAVE/RESET SLAVE ALL commands should do the cleanup
even in a scenario where Relay_log_info object
initialization failed.

Backported a flag named 'error_on_rli_init_info' which is
required to identify slave's Relay_log_info object
initialization failure. This flag exists in MySQL-5.6
onwards as part of BUG#14021292 fix.

During RESET SLAVE/RESET SLAVE ALL execution this flag
indicates the Relay_log_info initialization failure.
In such a case open the relay log index/relay log files
and do the required clean up.
2017-02-28 10:00:51 +05:30
..
auth_sec Bug#24707666: DEFAULT SETTING FOR SECURE-FILE-PRIV SHOULD BE 2016-09-28 15:52:05 +05:30
binlog Bug#12818255: READ-ONLY OPTION DOES NOT ALLOW 2016-05-04 14:06:45 +05:30
engines Merge branch 'mysql-5.1' into mysql-5.5 2015-07-10 07:54:55 +05:30
federated Bug #12876932 - INCORRECT SELECT RESULT ON FEDERATED TABLE 2012-07-26 15:29:19 +05:30
funcs_1 Merge branch 'mysql-5.1' into mysql-5.5 2015-04-27 14:46:40 +05:30
funcs_2 Changed to Oracle bug numbers 2011-05-24 12:08:13 +05:30
innodb Bug #23280699: MYSQLD GOT SIGNAL 11 IN IS_NULL ON SELECT 2016-07-22 07:33:43 +05:30
innodb_zip BUG#16321920 : CREATE A SEPARATE INNODB_ZIP TEST SUITE 2013-11-29 15:13:47 +05:30
jp Bug#20198490 : LOWER_CASE_TABLE_NAMES=0 ON WINDOWS LEADS TO 2015-08-21 08:35:42 +05:30
large_tests BUG#11877618: rpl_slave_net_timeout fails in rpl_sync.inc (at sync_slave_with_master) 2011-03-17 11:31:42 +01:00
manual BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
ndb Bug #18075170 SQL NODE RESTART REQUIRED TO 2015-05-11 16:05:50 +05:30
parts Bug #17299181 CREATE_TIME AND UPDATE_TIME ARE WRONG FOR PARTITIONED TABLES 2015-04-07 09:56:28 +05:30
perfschema Bug#14111584 PB2: PERFSCHEMA.AGGREGATE FAILS ON PB2 SPORADICALLY 2016-06-30 20:42:29 +02:00
perfschema_stress Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
rpl Bug#24901077: RESET SLAVE ALL DOES NOT ALWAYS RESET SLAVE 2017-02-28 10:00:51 +05:30
stress Bug #11751927 42960: MTR2: NO MORE --STRESS PARAMETERS 2011-09-15 12:34:32 +02:00
sys_vars Merge branch 'mysql-5.1' into mysql-5.5 2015-07-10 07:54:55 +05:30