[MDEV-16461] MyISAM creates defect indexes on varchar, if rowcount is above some threshold between 480,000,000 and 490,000,000 Created: 2018-06-11 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Platform Debian, Storage Engine - MyISAM |
| Affects Version/s: | 10.2.15, 10.2, 10.3 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | rawi | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu Xenial Server |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
rs is in the form "rs12364789", max. length of the string is 12; always "rs" before a number
RESULTS:
The row can still be found with IGNORE INDEX (PRIMARY) If I build another table with only a non unique index on `rs` , EXPLAIN says it's using the index but the query won't find anything.. A server version from 3 or 4 Months ago worked OK. Hope it helps Thanks |
| Comments |
| Comment by Alice Sherepa [ 2018-06-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
What query returns "Impossible WHERE noticed after reading const tables"? Please add also your .cnf file, thanks!
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by rawi [ 2018-06-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sorry to come back that late. I think now, that the culprit is myisamchk creating the indexes. As you'll see, it is myisamchk who builds the bad index. – FIRST METHOD (DISABLE INDEX CREATION == bad index == repair cannot repair)
–
– CONCLUSION?
Thank you | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2018-06-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
rawi, thanks! Reproduced the problem on 10.2.15
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by rawi [ 2018-10-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The same happens with version 10.3.9. And the same happens adding the primary key later with
Any chance this will be some time more closely examined? Sorry to annoy you with it Thanks | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2018-10-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
rawi , sorry for the delay. Reproduced on 10.3.10 as well
|