[MDEV-16229] Replication aborts with ER_VIEW_SELECT_TMPTABLE after half-failed RENAME Created: 2018-05-21 Updated: 2018-05-24 Resolved: 2018-05-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Data Definition - Temporary, Replication |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | 10.0.36, 10.1.34, 10.2.16, 10.3.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In the test case above, RENAME TABLE behaves differently on different versions.
I'm not quite sure which part is a bug – maybe it's wrong that the second part of RENAME fails, as it attempts to rename tmp to a base table rather than temporary table; or maybe it should be so, but then it should be written to the binary log (with the error code). In any case, something is wrong, since it causes a replication abort. |
| Comments |
| Comment by Michael Widenius [ 2018-05-22 ] |
|
Problem was that detection of temporary tables was all wrong for Fixed by adding proper parsing of rename list to check against |
| Comment by Michael Widenius [ 2018-05-23 ] |
|
Testing with mtr and buildbot |