[MDEV-8889] Assertion `next_insert_id == 0' failed in handler::ha_external_lock Created: 2015-10-02 Updated: 2016-04-22 Resolved: 2016-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Data Manipulation - Insert |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.0.25 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | assertion | ||
| Sprint: | 10.0.23, 10.0.25 |
| Description |
|
For RQG, I recommend to use lp:~elenst/randgen/mariadb-patches |
| Comments |
| Comment by Sergey Vojtovich [ 2015-12-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem is in handle_delayed_insert():
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2016-04-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I failed to create reasonable test case because it needs signal from delayed thread. The following test works but pollutes debug_sync state because signal is issued unconditionally:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2016-04-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
serg, please review fix for this bug. |