[MDEV-22335] Inserting in a partitioned table sometimes causes error 1062 Created: 2020-04-22 Updated: 2020-05-12 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Partitioning |
| Affects Version/s: | 10.3.22 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Anton B | Assignee: | Matthias Leich |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux 4.19.0-8-cloud-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux |
||
| Description |
|
Table
Query
Error
Additional Information
|
| Comments |
| Comment by Matthias Leich [ 2020-05-05 ] | ||||||||||||||||||||||||||
|
Thank you for the bug report. Would you please send the server error log from the point of time where that 1062 Duplicate entry ... happens? Are there more features like for example FOREIGN KEYS or TRIGGERS involved? Have you tried a CHECK TABLE `background` EXTENDED ? Many thanks in advance. | ||||||||||||||||||||||||||
| Comment by Anton B [ 2020-05-05 ] | ||||||||||||||||||||||||||
|
1. No FOREIGN KEYS or TRIGGERS 2. Run "CHECK TABLE `background` EXTENDED", result - OK 3. Mysql error.log empty, server (dmesg -T) no error Transaction example.
Statistics 04 May 2020 | ||||||||||||||||||||||||||
| Comment by Matthias Leich [ 2020-05-07 ] | ||||||||||||||||||||||||||
|
Many thanks for your fast answer. I simulated the transaction from above by some RQG test. | ||||||||||||||||||||||||||
| Comment by Anton B [ 2020-05-07 ] | ||||||||||||||||||||||||||
|
The problem may be related to the environment? Can the problem be related to competitive requests? In my case, 50 threads are trying to complete a transaction at the same time. And in the future there will be more flows. | ||||||||||||||||||||||||||
| Comment by Matthias Leich [ 2020-05-11 ] | ||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||
| Comment by Anton B [ 2020-05-12 ] | ||||||||||||||||||||||||||
|
Run "SHOW VARIABLES LIKE 'innodb_lock_schedule_algorithm'", result - "innodb_lock_schedule_algorithm fcfs" |