[MDEV-8299] MyISAM or Aria table gets corrupted after EXPLAIN INSERT and INSERT Created: 2015-06-11 Updated: 2015-10-06 Resolved: 2015-10-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.0.22, 10.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Reproducible on the current 10.0 (pre-10.0.20) and 10.1 trees, as well as 10.0.10 release; I didn't check further back. |
| Comments |
| Comment by Sergei Petrunia [ 2015-10-05 ] | |||||||||||||
|
The problem is not affected by the candidate fix for | |||||||||||||
| Comment by Sergei Petrunia [ 2015-10-05 ] | |||||||||||||
|
Another observation: putting FLUSH TABLES after EXPLAIN INSERT ... SELECT makes the problem go away:
Looks like EXPLAIN INSERT ... SELECT is not de-initializing the table properly | |||||||||||||
| Comment by Sergei Petrunia [ 2015-10-05 ] | |||||||||||||
|
After some debugging: EXPLAIN INSERT ... SELECT doesn't call end_bulk_insert. The sequence of calls is as follows: h->start_bulk_insert() and it seems that with MyISAM, h->reset() doesn't cancel the action of start_bulk_insert(). | |||||||||||||
| Comment by Sergei Petrunia [ 2015-10-05 ] | |||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2015-October/008486.html. | |||||||||||||
| Comment by Oleksandr Byelkin [ 2015-10-06 ] | |||||||||||||
|
OK to push |