Bug #56148 Unhelpful warning about deprecated --master-xxx options
Submitted: 20 Aug 2010 14:31 Modified: 14 Nov 2011 8:37
Reporter: Paul DuBois Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Errors Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Jon Olav Hauglid CPU Architecture:Any

[20 Aug 2010 14:31] Paul DuBois
Description:
In MySQL 5.1, the --master-xxx replication options are deprecated and if used result in a warning to the error log. However, the warning is unhelpful because it does not specify which option resulted in the warning.

Start a replication slave with a --master-xxx option. For example:

[mysqld]
master-port=12345

Then look in the error log. It will say:

[Warning] 'for replication startup options' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.

It should say this:

[Warning] '--master-port' is deprecated and will be removed in a future release. Please use ''CHANGE MASTER'' instead.

How to repeat:
See above.
[20 Aug 2010 14:34] Paul DuBois
I notice this warning appears only once, even if multiple --master-xxx options are used. Perhaps the server is just keeping track of whether any such options are used and this warning is supposed to be a generic warning. In my opinion, it would be more helpful to see a warning that names the offending option, one warning for each such option.
[20 Aug 2010 14:43] Andrei Elkin
Verified as described in 5.1.50.
[14 Nov 2011 8:37] Jon Olav Hauglid
This bug is only repeatable on 5.1, not 5.5 and trunk.
Since this bug is triaged for trunk, I'm closing it as "Can't repeat".