[MDEV-30379] Direct INSERT ON DUP KEY UPDATE causes misplaced records among partitions Created: 2023-01-11 Updated: 2023-11-28 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.6.4 |
| Fix Version/s: | 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel YE | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When `spider_direct_dup_insert=1`, INSERT ... ON DUPLICATE KEY UPDATE queries are sent to data nodes directly to improve performance. Yet when operating on a Spider table with partitioning, the scenario where the partition key is changed is not taken account into by this mechanism. When a record's partition key is changed to a value that belongs to another partition, sending ON DUPLICATE KEY UPDATE directly results in misplacing the record in a partition it does not belong. How to reproduce (tested on MariaDB 10.6.4):
|
| Comments |
| Comment by Yuchen Pei [ 2023-02-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
mtr testcase
|