[MDEV-13151] Indeterministic results of multi-table update on RocksDB (or other) tables Created: 2017-06-22 Updated: 2017-07-31 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
10.2 0992be927e1c686c39c39fe53fc2a7869d55143d |
||
| Description |
|
By simply repeating this set of queries over and over I am getting various results, typically in table t1. This is more common (it is also a correct result):
This is less common (happens for me every 5-6 tries):
|
| Comments |
| Comment by Sergei Petrunia [ 2017-07-28 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Looking at the explain in the slow query log, one can see that
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2017-07-28 ] | |||||||||||||||||||||||||||||||||||||||||||
|
When one uses InnoDB, the join order is t1,t2:
What if I use gdb to make t1,t2 query plan to be more expensive? t2, t1 is picked instead:
The results are what I would assume "incorrect" (putting that into quotes because I'm not certain if we promised to handle such cases) :
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2017-07-28 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Removing RocksDB label as the issue is not specific to RocksDB, I also do not think it is practically significant. |