[MDEV-8977] SELECTS on the same table return inconsistent data Created: 2015-10-21 Updated: 2015-10-26 Resolved: 2015-10-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - TokuDB |
| Affects Version/s: | 10.0.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Jaime Crespo | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Custom packages with MariaDB 10.0.16 and tokudb-7.5.4 |
||
| Description |
|
Reported upstream at: https://tokutek.atlassian.net/browse/DB-890 Huge inconsistency when running these queries:
Expected to return the same row even when queried the same row with a partial primary key:
|
| Comments |
| Comment by Elena Stepanova [ 2015-10-21 ] | |||||||
|
Would you be able to provide a data dump for the table? It can be uploaded to ftp.askmonty.org/private, this way only MariaDB developers will have access to it. If it's impossible, please paste the output of
In any case, please also run and paste the output of
and attach your cnf file(s). Thanks. | |||||||
| Comment by Jaime Crespo [ 2015-10-23 ] | |||||||
|
As this is a production server, I had to fix replication manually and continue inserting recors- I can no longer reproduce the problem:
I highly suspect that this is related to TokuDB's delayed update feature, in which it fails to update the indexes on time to make them consistent with its data on SELECT. I will leave to you the closing of this Bug (I can always reopen it later if it happens again), although to be fair I wouldn't expect this to be a specific MariaDB issue, but a Toku packing issue or bug. We are suffering several issues with Toku on MariaDB currently: https://phabricator.wikimedia.org/T109069 | |||||||
| Comment by Elena Stepanova [ 2015-10-26 ] | |||||||
|
jcrespo, We are not getting much feedback from TokuDB developers nowadays, so it's difficult to say what they think about this, but we will be tracking the bug you reported to them. You might also want to consider upgrading – there have been several 10.0 releases since 10.0.16, including both MariaDB bugfixes and TokuDB merges, so maybe the bug you are facing has already been fixed. |