Bug #39783 RESET SLAVE behavior changes in MySQL-6.0
Submitted: 1 Oct 2008 16:36 Modified: 24 Jan 2014 16:22
Reporter: Jonathan Miller Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S2 (Serious)
Version:mysql-6.0-online OS:Any
Assigned to: Jon Stephens CPU Architecture:Any

[1 Oct 2008 16:36] Jonathan Miller
Description:
RESET SLAVE in 6.0 is not supposed to reset master information.

RESET SLAVE

RESET SLAVE makes the slave forget its replication position in the
master's binary logs. This statement is meant to be used for a clean
start: It deletes the master.info and relay-log.info files, all the
relay logs, and starts a new relay log.
Note

All relay logs are deleted, even if they have not been completely
executed by the slave SQL thread. (This is a condition likely to exist
on a replication slave if you have issued a STOP SLAVE statement or if
the slave is highly loaded.)

Connection information stored in the master.info file is immediately
reset using any values specified in the corresponding startup options.
This information includes values such as master host, master port,
master user, and master password. If the slave SQL thread was in the
middle of replicating temporary tables when it was stopped, and RESET
SLAVE is issued, these replicated temporary tables are deleted on the
slave. 

How to repeat:
N/A

Suggested fix:
RESET SLAVE

RESET SLAVE This statement is meant to be used for a clean
start: 

It deletes relay-log.info files, all the relay logs, starts a new relay log and removed the master's binary logs position.

If the slave SQL thread was in the middle of replicating temporary tables when it was stopped, and RESET SLAVE is issued, these replicated temporary tables are deleted on the slave. 

Note

All relay logs are deleted, even if they have not been completely
executed by the slave SQL thread. (This is a condition likely to exist
on a replication slave if you have issued a STOP SLAVE statement or if
the slave is highly loaded.)
[28 May 2009 8:57] Jon Stephens
Does this represent a behaviour change, or a change in the description?
[17 Dec 2009 22:03] Roel Van de Paar
See bug #49785
[26 Jan 2014 23:39] Roel Van de Paar
Closed without action list?