[MDEV-8075] DROP TEMPORARY TABLE not marked as ddl, causing optimistic parallel replication to fail Created: 2015-04-28 Updated: 2017-07-04 Resolved: 2017-07-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.25 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
Note: I am only getting the failure with optimistic mode, although there is no guarantee it never happens in other circumstances.
To reproduce, I
Takes a few minutes, crashes every time for me. |
| Comments |
| Comment by Kristian Nielsen [ 2015-04-29 ] | ||||||||||
|
This is the binlog around where it fails (the assertion occurs during
I think what happens is that in GTID 0-1-3604 we drop a temporary table So when we speculatively execute 0-1-3605, we get the wrong table (the (And even worse, we then wait for 0-1-3604 to drop the temporary table, So this seems to show that DROP TEMPORARY TABLE needs to be marked as "ddl" A standalone DROP TEMPORARY TABLE is marked as ddl already, but there are | ||||||||||
| Comment by Kristian Nielsen [ 2015-05-06 ] | ||||||||||
|
http://lists.askmonty.org/pipermail/commits/2015-May/007819.html | ||||||||||
| Comment by Kristian Nielsen [ 2015-05-07 ] | ||||||||||
|
I discovered a problem with the patch. Consider queries like these:
A transaction that is implicitly committed by a following DDL. With the I will come up with a new patch that fixes this ... | ||||||||||
| Comment by Kristian Nielsen [ 2015-05-15 ] | ||||||||||
| Comment by Michael Widenius [ 2017-05-28 ] | ||||||||||
|
I have now modified the patch for latest 10.1, fixed some issues with timezone and also added a fix for the ALTER TABLE. | ||||||||||
| Comment by Michael Widenius [ 2017-05-29 ] | ||||||||||
|
Ready to be reviewed. Most things are same as original patch and should be ok. Only the usage of to_2pc should be checked. (I have done an initial check and it looks ok). | ||||||||||
| Comment by Michael Widenius [ 2017-07-04 ] | ||||||||||
|
Fix reviewed and pushed |