[MDEV-717] LP:1003679 - Wrong binlog order on concurrent DROP schema and CREATE function Created: 2012-05-23 Updated: 2016-05-09 Resolved: 2016-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Procedure, Replication |
| Affects Version/s: | 5.5, 10.0 |
| Fix Version/s: | 10.1.16 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad, upstream-fixed | ||
| Attachments: |
|
| Sprint: | 10.1.13, 10.1.14 |
| Description |
|
Also filed as http://bugs.mysql.com/bug.php?id=65428 Concurrent execution of DROP DATABASE and CREATE FUNCTION | PROCEDURE | EVENT causes a wrong order of events in the binary log and, consequently, replication failure. Provided MTR test case is non-deterministic, so I am also adding an RQG grammar to reproduce. Reproducible on maria/5.5 revno 3413, mysql-5.5 revno 3737, mysql-trunk revno 3827.
|
| Comments |
| Comment by Elena Stepanova [ 2012-05-23 ] | |||||||||||||||||||||||||||||
|
Wrong binlog order on concurrent DROP schema and CREATE function Provided MTR test case is non-deterministic, so I am also adding an RQG grammar to reproduce. Reproducible on maria/5.5 revno 3413, mysql-5.5 revno 3737, mysql-trunk revno 3827.
--source include/master-slave.inc DROP DATABASE IF EXISTS db1; CREATE DATABASE db1; --connection master1 --connection master --sync_slave_with_master
Log_name Pos Event_type Server_id End_log_pos Info
query: thread1:
perl runall.pl \ | |||||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2012-05-26 ] | |||||||||||||||||||||||||||||
|
Launchpad bug id: 1003679 | |||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2013-01-08 ] | |||||||||||||||||||||||||||||
|
fixed in mysql-5.7.0 | |||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-11-09 ] | |||||||||||||||||||||||||||||
|
Still reproducible on current 10.0 (10.0.14+, revno 4471). Fixed in 5.7.0:
| |||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2016-03-20 ] | |||||||||||||||||||||||||||||
|
Proposed fix: http://lists.askmonty.org/pipermail/commits/2016-March/009141.html | |||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2016-03-24 ] | |||||||||||||||||||||||||||||
|
The fix was pushed, but i still need to add a proper test for this. | |||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2016-05-03 ] | |||||||||||||||||||||||||||||
|
Test case added: | |||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2016-05-05 ] | |||||||||||||||||||||||||||||
|
Final patch: |