Bug #62557 | SHOW SLAVE STATUS gives wrong output with master-master and using SET uservars | ||
---|---|---|---|
Submitted: | 27 Sep 2011 20:52 | Modified: | 7 Sep 2012 13:59 |
Reporter: | Kenny Gryp | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.1, 5.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | replication, set uservariables, show slave status |
[27 Sep 2011 20:52]
Kenny Gryp
[14 Jan 2012 12:29]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior with version 5.1.60. Please try with this current version and if problem still exists provide name of the package you use (filename you downloaded), full configuration files and inform us how reliable problem is (e.g. if you see it for every SET query or you have to repeat them for some time).
[14 Jan 2012 14:11]
Alexey Kopytov
Sveta, I can repeat it on the current 5.1 branch from Launchpad which has 5.1.62 as its version. I'm attaching an mtr test case, you can put those files in mysql-test/suite/rpl/t/ and then run as "./mtr percona_bug860910". It passes in Percona Server, but hangs when trying to sync servers on MySQL due to corrupted Exec_Master_Log_Pos.
[14 Jan 2012 14:12]
Alexey Kopytov
percona_bug860910.test
Attachment: percona_bug860910.test (application/octet-stream, text), 1.02 KiB.
[14 Jan 2012 14:13]
Alexey Kopytov
percona_bug860910.cnf
Attachment: percona_bug860910.cnf (application/octet-stream, text), 80 bytes.
[16 Jan 2012 18:10]
Sveta Smirnova
Thank you for the feedback. Verified as described.
[2 Feb 2012 15:17]
Alex Hermann
The bug of the wrong server_id in the binlog when log_slave_updates is set, is also mentioned in (closed) bug #51942 and has a patch attached to fix it. No idea if this patch will 'automatically' fix the wrong SHOW SLAVE STATUS Exec_master_log_pos value. Maybe these are separate bugs.
[2 Feb 2012 15:23]
Alex Hermann
The status recovers not only after a write, also after a new binlog file is started.
[7 Sep 2012 13:59]
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
[7 Sep 2012 14:00]
Jon Stephens
Fixed in 5.1.66 and 5.5.28. (Issue does not occur in 5.6.)