[MDEV-15106] Unexpected ER_WRONG_INSERT_INTO_SEQUENCE upon INSERT with multiple locks on sequences Created: 2018-01-28 Updated: 2018-05-18 Resolved: 2018-05-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Sequences |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
b8c92d752c34e51dbe8ed551542415e2481581d7 |
||
| Issue Links: |
|
||||||||
| Description |
|
|
| Comments |
| Comment by Oleksandr Byelkin [ 2018-04-27 ] | |||||||||||||||
|
| |||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-27 ] | |||||||||||||||
|
Accoring to code and comments in it it is expected behavior and should be documented probably:
| |||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-27 ] | |||||||||||||||
|
monty is above correct? | |||||||||||||||
| Comment by Elena Stepanova [ 2018-04-27 ] | |||||||||||||||
|
It cannot be expected behavior (or if it is, it's a wrong expectation and must be fixed). | |||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-27 ] | |||||||||||||||
|
OK, better wording is it is exactly programmed by the author behaviour, and so it is completely expected from this code. | |||||||||||||||
| Comment by Elena Stepanova [ 2018-04-27 ] | |||||||||||||||
|
You do single INSERT. How can it possibly be logical? | |||||||||||||||
| Comment by Michael Widenius [ 2018-05-03 ] | |||||||||||||||
|
Fixed by removing the check of single lock and let MDL code handle deadlock detection |