[MDEV-9266] Creating index on temporaray table breaks replication Created: 2015-12-11 Updated: 2021-11-02 Resolved: 2018-07-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.0.36, 10.1.35, 10.2.17, 10.3.9 |
| Type: | Bug | Priority: | Critical |
| Reporter: | P.R. Water | Assignee: | Sachin Setiya (Inactive) |
| Resolution: | Fixed | Votes: | 7 |
| Labels: | upstream-not-affected | ||
| Environment: |
CentOS Linux release 7.1.1503 (Core) |
||
| Issue Links: |
|
||||||||||||||||||||
| Sprint: | 10.2.11, 10.2.12, 10.0.34, 10.2.14, 10.1.32 | ||||||||||||||||||||
| Description |
|
Creating an index on temporary table breaks (row based) replication. On the master execute the following SQL statements:
On the slave we get the following error:
Configuration of master:
Configuration of slave:
Work a round: On the slave set slave-skip-errors in my.cnf:
Note: The master and slave server run the same OS and MariaDB versions. |
| Comments |
| Comment by Elena Stepanova [ 2015-12-26 ] | |||||||||||||||||
|
Thanks for the report. Another workaround is to use ALTER TABLE .. ADD INDEX instead of CREATE INDEX. | |||||||||||||||||
| Comment by Marc [ 2016-04-13 ] | |||||||||||||||||
|
We have also hit this issue with MariaDB 10.1.13, on Red Hat 6 64 bits. Since the create index on the temporary table is generated by a third party application, we used the variable replication_wild_ignore_table as a workaround. Any date known for the resolution of this issue? Regards, Marc | |||||||||||||||||
| Comment by Valerii Kravchuk [ 2017-10-06 ] | |||||||||||||||||
|
This is still happens in 10.1.28. Upstream MySQL 5.6.x (checked on 5.6.29) is NOT affected. | |||||||||||||||||
| Comment by Elena Stepanova [ 2017-10-30 ] | |||||||||||||||||
|
10.2 and 10.3 are also affected. | |||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-05-02 ] | |||||||||||||||||
|
A mtr test case
| |||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-05-03 ] | |||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2018-May/012475.html | |||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-05-04 ] | |||||||||||||||||
|
latest patch http://lists.askmonty.org/pipermail/commits/2018-May/012478.html | |||||||||||||||||
| Comment by Andrei Elkin [ 2018-05-29 ] | |||||||||||||||||
|
The patch needs to address DROP INDEX as well. | |||||||||||||||||
| Comment by Andrei Elkin [ 2018-07-11 ] | |||||||||||||||||
|
The rename case was attempted tackling within the current | |||||||||||||||||
| Comment by Andrei Elkin [ 2018-07-11 ] | |||||||||||||||||
|
The ticket returned back to sachin.setiya.007 the author of initial patch after RENAME subtask which was not required by the report is made in its own ticket due to complications potentially involving changes in the parser. The latest patch is good to push. |