Bug #68164 | MySQL 5.6: Version mismatch a bit alarming when master is not 5.6 | ||
---|---|---|---|
Submitted: | 24 Jan 2013 13:14 | Modified: | 3 Apr 2013 13:42 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.6.9-rc | OS: | Any |
Assigned to: | Luis Soares | CPU Architecture: | Any |
[24 Jan 2013 13:14]
Simon Mudd
[24 Jan 2013 13:34]
Erlend Dahl
Thank you for the bug report. Verified by code inspection.
[24 Jan 2013 13:44]
Mark Leith
A couple of notes on this: We actually do the version checking before trying to get the master_uuid: ret= get_master_version_and_clock(mysql, mi); if (!ret) ret= get_master_uuid(mysql, mi); if (!ret) ret= io_thread_init_commands(mysql, mi); if (ret == 1) /* Fatal error */ goto err; if (ret == 2) { if (check_io_slave_killed(mi->info_thd, mi, "Slave I/O thread killed" "while calling get_master_version_and_clock(...)")) Note, we set ret a number of times during this process, however in the final message printed, we state it's a problem calling get_master_version_and_clock(), only, whilst functions such as get_master_uuid() can also set ret to 2. It seems there is some precedence to the emphasis in these kinds of errors, we have done the same for server_id and collation_server: mi->report(WARNING_LEVEL, ER_UNKNOWN_SYSTEM_VARIABLE, "Unknown system variable 'SERVER_ID' on master, \ maybe it is a *VERY OLD MASTER*."); mi->report(WARNING_LEVEL, ER_UNKNOWN_SYSTEM_VARIABLE, "Unknown system variable 'COLLATION_SERVER' on master, \ maybe it is a *VERY OLD MASTER*. *NOTE*: slave may experience \ inconsistency if replicated data deals with collation."); However, these were all there pre-5.0, so somewhat warranted. In the case of the master_uuid, I agree with the above, we should not put that kind of emphasis on it, and be more descriptive in which versions are required/used.
[3 Apr 2013 13:42]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html
[3 Apr 2013 13:42]
Jon Stephens
Fixed in 5.6+. Documented in the 5.6.11 and 5.7.1 changelogs as follows: When replicating to a MySQL 5.6 master to an older slave, Error 1193 (ER_UNKNOWN_SYSTEM_VARIABLE) was logged with a message such as -Unknown system variable 'SERVER_UUID' on master, maybe it is a *VERY OLD MASTER*.- This message has been improved to include more information, similat to this one: -Unknown system variable 'SERVER_UUID' on master. A probable cause is that the variable is not supported on the master (version: 5.5.31), even though it is on the slave (version: 5.6.11)- Closed.